British lawmakers’ attempt to thwart Prime Minister Boris Johnson — and stop the country from leaving the European Union at the end of October without a divorce deal — passed a major hurdle in Parliament Wednesday.

The House of Commons voted 329-300 to approve the bill in principle, sending it on for further debate and a second vote scheduled for 2 p.m. New York time on Wednesday.

If the legislation is approved by the House of Commons it will go to Parliament’s upper chamber, the House of Lords.

Pro-Brexit peers are threatening to try to stop it by filibustering — talking so much that time runs out.

Johnson said Britain must leave the EU on Oct. 31, with or without a deal, and plans to seek a snap election if the opposition bill becomes law.

Johnson cast the legislative move in the House of Commons as an attempt to surrender to the EU over Brexit and demanded an Oct. 15 election — a step that could free him of any constraints if he won a majority.

But the second most powerful man in the opposing Labour Party, John McDonnell, said the no-deal blocking legislation had to get assent from Queen Elizabeth — putting the law onto the statute book — before the party would agree to an election. This could happen as early as Monday.

“We’re … not going to be tricked or conned by Johnson so we’re looking at every way in which, having secured the legislation, he can’t wriggle out of abiding by the law and implementing it,” McDonnell said.

Parliament’s bid to tie Johnson’s hands leaves Brexit up in the air, with possible outcomes ranging from a turbulent no-deal EU exit to abandoning the whole endeavor – both outcomes that would be unacceptable to swathes of the United Kingdom’s voters.

President Trump briefly weighed in on the developments during an Oval Office update on Hurricane Dorian.

“He’s a friend of mine, and he’s going at it, there’s no question about it,” Trump said. “Boris knows how to win. Don’t worry about him.”

With Wires