Britain's Prime Minister Boris Johnson speaks to lawmakers during the election debate in the House of Commons, London, Monday Oct. 28, 2019.   Lawmakers on Monday rejected Johnson's call for a December national election, in the hope of breaking the political deadlock over Brexit. (Jessica Taylor/House of Commons via AP)

LONDON (AP) — Britain got Brexit breathing space but no clarity on Monday when the European Union granted a three-month delay to the U.K.'s departure from the bloc, postponing it until Jan. 31.

British politicians immediately began using the extra time to do what they have done for more than three years: bicker about Brexit.

Prime Minister Boris Johnson pushed for an early election as a way of breaking the political deadlock over the country's stalled departure from the EU, only to be rebuffed by lawmakers.

Legislators voted by 299-70 for Johnson's motion to hold a Dec. 12 election — short of the two-thirds majority of the 650 members of Parliament needed for it to pass.

Still, an election appears inevitable well before the next scheduled one in 2022 if Britain is to move on from the stasis caused by a prime minister who vowed to deliver Brexit "do or die" and a Parliament that has repeatedly thwarted him.

Johnson said he would try again Tuesday, using a different procedure: a bill, which only needs a simple majority to pass.

"We will not allow this paralysis to continue, and one way or another we must proceed straight to an election," Johnson said.

Earlier, he had accused his opponents of betraying voters' decision to leave the EU by thwarting the government's Brexit plans.

He said that unless there was an election, the government would be "like Charlie Brown, endlessly running up to kick the ball only to have Parliament whisk it away."

"We cannot continue with this endless delay."

Yet further delay stretched ahead after the EU agreed to postpone Brexit until Jan. 31, acting to avert a chaotic U.K. departure just three days before Britain was due to become the first country ever to leave the 28-nation bloc.

After a short meeting of diplomats in Brussels, European Council President Donald Tusk tweeted that the EU's 27 other countries would accept the U.K.'s request for a "flextension." Under the terms of the agreement, the U.K. can leave before Jan. 31 — on Dec. 1 or Jan 1 — if the British and European parliaments both ratify a Brexit divorce agreement.

It's the third time the Brexit deadline has been changed since British voters decided in a 2016 referendum to leave the bloc.

The decision was welcomed by politicians in the U.K. and the EU as a temporary respite from Brexit anxiety — but not by Johnson, who said just weeks ago that he would "rather be dead in a ditch" than postpone the U.K.'s leaving date past Oct. 31.

In the end, the choice was not in his hands. The U.K. Parliament forced Johnson to ask for a delay to avoid a no-deal Brexit, which would hurt the economies of both Britain and the EU.

In a letter to Tusk, Johnson said that under U.K. law "I have no discretion . to do anything other than confirm the U.K.'s formal agreement to this extension."

But he called the delay "unwanted" and said it was "imposed on this government against its will."

Johnson urged the 27 other EU countries "to make clear that a further extension after 31 January is not possible."

Johnson took office in July vowing to "get Brexit done" after his predecessor, Theresa May, resigned in defeat. Parliament had rejected her divorce deal with the bloc three times, and the EU had delayed Britain's scheduled March 29 departure, first to April, and then to October.

Johnson has faced similar political gridlock, as Parliament blocked his attempt to push through his Brexit deal before the October deadline and made him ask the EU for more time.

Johnson hopes voters will give his Conservative Party a majority if there is an election, so that he can push through the divorce deal he struck with the EU and — finally — take Britain out of the bloc.

Opposition parties also want an election, though not on Johnson's terms.

Kirsty Blackman of the Scottish National Party said her party favored a slightly earlier Dec. 9 vote and "we will not be dancing to Boris Johnson's tune on this."

The main opposition Labour Party said it would study the government's bill before deciding whether to back it.

"We look forward to a clear, definitive decision that no deal is absolutely off the table and there is no danger of this prime minister not sticking to his word," said Labour leader Jeremy Corbyn.

There's also a strong chance an election could produce a Parliament as divided over Brexit as the current one. All the political parties are worried about a backlash from grumpy voters asked to go to the polls at the darkest, coldest time of the year. Britain has not had a December election in almost a century.

European officials, meanwhile, urged Britain not to waste the extra Brexit time.

German government spokesman Steffen Seibert welcomed the Brexit delay, but cautioned Britain to "use the additional time productively."

Guy Verhofstadt, head of the European Parliament's Brexit group, wrote on Twitter that whatever Britain ultimately decides to do, "the uncertainty of Brexit has gone on for far too long."

"This extra time must deliver a way forward."

France had resisted another extension to Brexit, but European Affairs Minister Amelie de Montchalin said the prospect of a new election in Britain justified the new delay. Montchalin also said it was not too late for Britain to revoke Article 50 of the EU treaty and cancel Brexit, something that Johnson has vowed he will never do.

"The prime minister can pick up his phone and call Brussels to say: 'I stop everything,'" she said.

___

Samuel Petrequin reported from Brussels. Lorne Cook in Brussels and Gregory Katz in London contributed to this report.

___

Follow AP's full coverage of Brexit and British politics at https://www.apnews.com/Brexit

The Speaker of the House of Commons John Bercow speaks to lawmakers during an election debate in the House of Commons, London, Monday Oct. 28, 2019.  Lawmakers on Monday rejected Johnson's call for a December national election, in the hope of breaking the political deadlock over Brexit. (Jessica Taylor/House of Commons via AP)
Lawmakers react during a debate on an early election, with members of the ruling Conservative Party, from left, Jacob Rees-Mogg, Dominic Raab, Nicky Morgan, in the House of Commons, London, Monday Oct. 28, 2019.  Lawmakers on Monday rejected Johnson's call for a December national election, in the hope of breaking the political deadlock over Brexit. (Jessica Taylor/House of Commons via AP)
Britain's Prime Minister Boris Johnson speaks to lawmakers during the election debate in the House of Commons, London, Monday Oct. 28, 2019. The EU agreed Monday to a three month delay in Britain's Brexit departure from the bloc, and parliament will vote on Monday if to have an early General Election. (House of Commons via AP)
Britain's main opposition Labour Party leader Jeremy Corbyn speaks to lawmakers during an election debate in the House of Commons, London, Monday Oct. 28, 2019. The EU agreed Monday to a three month delay in Britain's Brexit departure from the bloc, and parliament will vote on Monday if to have an early General Election. (House of Commons via AP)
British Prime Minister Boris Johnson and his advisor Dominic Cummings, left, leave 10 Downing Street in London, and get in a car together to go to the Houses of Parliament, Monday, Oct. 28, 2019. British Prime Minister Boris Johnson says it's Parliament's fault, not his, that Britain will not be leaving the European Union as scheduled on Oct. 31. The EU has agreed to postpone Brexit until Jan. 31, 2020, after Johnson failed to get British lawmakers to ratify his divorce deal with the bloc in time to leave this week. (AP Photo/Matt Dunham)
European Union chief Brexit negotiator Michel Barnier heads to a meeting about Brexit at the EU headquarters in Brussels, Monday, Oct. 28, 2019. European Council president Donald Tusk says the bloc has agreed to grant Britain a new Brexit delay to Jan. 31 next year. (AP Photo/Francisco Seco)
Anti-brexit demonstrators stand outside Parliament in London, Monday, Oct. 28, 2019. British Prime Minister Boris Johnson says it's Parliament's fault, not his, that Britain will not be leaving the European Union as scheduled on Oct. 31. The EU has agreed to postpone Brexit until Jan. 31, after Johnson failed to get British lawmakers to ratify his divorce deal with the bloc in time to leave this week. (AP Photo/Kirsty Wigglesworth)
The European Commission headquarters is reflected in the windows of the European Council building in Brussels, Monday, Oct. 28, 2019. The European Union agreed Monday to delay Brexit until Jan. 31 next year, making the concession just three days before Britain was due to become the first country ever to leave the 28-nation bloc. (AP Photo/Francisco Seco)
EU and Union flags flap outside the Houses of Parliament in London, Monday, Oct. 28, 2019. European Council president Donald Tusk says the bloc has agreed to grant Britain a new Brexit delay to Jan. 31 next year. (AP Photo/Alberto Pezzali)
The sun shines through a European Union flag hanging outside Parliament in London, Monday, Oct. 28, 2019. The European Union agreed Monday to delay Brexit until Jan. 31 next year — just three days before Britain was due to become the first country ever to leave the 28-nation bloc. (AP Photo/Kirsty Wigglesworth)