The government has narrowly avoided a defeat in the Commons, as rebels tried to give judges the power to prevent the UK making trade deals with countries that the courts deem to be committing genocide.
More than 30 Conservative MPs voted against the government on an amendment to the post-Brexit trade bill.
The rebellion is being seen as an attempt to stifle any future trade deal with China over its treatment of the Uighur Muslims.