A British man has been jailed in Bali for drug offences - and a charge that carried the death penalty was dropped.