Britain's House of Commons has approved legislation that gives ministers the power to break its divorce deal with the European Union, despite the threat of legal action from Brussels and unrest within the governing Conservative Party.
The UK Internal Market Bill, which ministers acknowledge breaks international law, was approved by 340 votes to 256 and now passes to the House of Lords for debate.
The bill seeks to protect free trade between Britain's four nations once a Brexit transition period ends, but has soured relations with Brussels just as time is running out to reach a deal on their long-term relationship.
After an initial uproar within Prime Minister Boris Johnson's party, including criticism from three former Conservative prime ministers, a rebellion was snuffed out by a concession to give parliament a say over using the powers.
The government says clauses in the bill which override the Withdrawal Agreement, signed by Johnson in January, are necessary to protect free trade with Northern Ireland, and will only be used if talks on a border solution with the EU fail.
The EU, which wants to make sure Northern Ireland's open border with member state Ireland does not act as a back door for goods to come into the bloc, says it is an extremely serious violation of the exit treaty and has threatened to sue.