UK government wins vote on customs union amendment