Britain's upper house of parliament voted on Tuesday to give lawmakers more power to reject the final terms of the country's exit from the European Union, ignoring pleas from Prime Minister Theresa May's government not to hamstring their negotiations.

The vote, which passed by 366 to 268 in the House of Lords, attaches an extra condition to the "European Union (Notification of Withdrawal) Bill" — legislation that will give May the power to trigger divorce talks. She plans to use that power this month.

The amended bill now demands that parliament has to approve any exit deal before it is debated by the European Parliament; if talks fail, lawmakers must approve a decision to walk away without a deal.