Nine people convicted of bypassing emissions controls or selling equipment to do so have had their convictions overturned.