Top senators said Tuesday they would vote Thursday on two separate bills that could bring an immediate end to the record-breaking government shutdown.

One of the bills has the backing of President Trump, and includes $5.7 billion for his long-promised border wall.

The other would extend funding for shuttered agencies through Feb. 8, the New York Times reported.

The plan, a compromise between Senate Majority Leader Mitch McConnell and Minority Leader Chuck Schumer, could be a way to end the shutdown — though the fate of the border-wall-funding bill remained in doubt in both the Senate and the House.

And Trump could veto one or both of the bills, prolonging the partial shutdown, which enters its 33rd day on Wednesday.

“People are saying isn’t there a way out of this mess, isn’t there a way to relieve the burden on the 800,000 federal workers not getting paid, isn’t there a way to get government services open first and debate what we should do for border security later?” Schumer said.

“Well, now there’s a way.”

Hours earlier, McConnell tweeted that Trump’s counteroffer to Democrats was the only path to reopening the government.

“The proposal outlined by @POTUS would reopen the government fully. It is the only proposal currently before us that can be signed by the President and immediately reopen the government,” he wrote.

The president’s proposal includes $5.7 billion to fund sections of the border wall in exchange for temporary protection for Dreamers.

House Democrats called it a non-starter.

“Senate Republicans need to re-open the government, not continue their complicity in the Trump Shutdown with a vote for the President’s unacceptable border and immigration schemes that only increase the chaos and suffering at the border,” House Speaker Nancy Pelosi (D-Ca.) said in a statement Tuesday night.

“The Senate GOP and President Trump must stop holding the American people hostage, and re-open the government immediately,” she said.