Junior ministers leave after voting against amendment when they had been ordered to abstain