President Joe Biden on Saturday signed legislation that averts a government shutdown heading into Christmas, bringing a final close to days of upheaval in Washington after Congress passed a bipartisan budget plan just past the deadline and rejected Donald Trump’s core demand in the negotiations.

The deal funds the government at current levels through March 14 and provides $100 billion in disaster aid and $10 billion in agricultural assistance to farmers.

House Speaker Mike Johnson had insisted lawmakers would “meet our obligations” and not allow federal operations to close. But the outcome at the end of a tumultuous week was uncertain after Trump had insisted the deal include an increase in the government’s borrowing limit. If not, he had said, then let the closures “start now.”

Johnson’s revised plan was approved 366-34, and it was passed by the Senate by a 85-11 vote after midnight. By then, the White House said it had ceased shutdown preparations.

The Baltimore Banner thanks its sponsors. Become one.

The spending bill also included a promise of full funding to rebuild Baltimore’s Francis Scott Key Bridge. Securing that money was a top priority of Maryland’s members of Congress as well as Gov. Wes Moore.

“The people of Maryland are grateful that Congress has strongly supported helping us rebuild the Francis Scott Key Bridge expeditiously,” Moore said in a statement on Saturday. “This action affirms the central importance of rebuilding the bridge not just to Maryland, but the nation. And by keeping the government open, we can ensure that hundreds of thousands of federal employees who call Maryland home will enjoy the holidays without fear of a shutdown. This bipartisan agreement is a win for port workers, truckers, small businesses, servicemembers, and working families throughout Maryland and across America. And while the tragic collapse of the Key Bridge happened during our time in office, we will rebuild it on our watch.”

U.S. Sen. Chris Van Hollen called the funding for the Key Bridge “a major victory.”

“After a months-long push, a united Team Maryland has secured 100 percent full federal funding for the cost of replacing the Key Bridge – and provided the necessary funds our state needs to move full steam ahead with the reconstruction. This is a major victory for our state, and I’m proud that we were able to deliver the resources that Baltimore and Maryland need to rebuild stronger following the Key Bridge disaster,” the Maryland Democrat said in a statement. “Despite the Republican chaos that brought us dangerously close to a government shutdown just before the holidays, I’m glad we were able to reach an 11th hour bipartisan agreement. This legislation will move the Key Bridge replacement forward while providing relief to other communities across the country hit by disasters.”

The final product was the third attempt from Johnson, the beleaguered House speaker, to achieve one of the basic requirements of the federal government — keeping it open. And it raised stark questions about whether Johnson will be able to keep his job, in the face of angry GOP colleagues, and work alongside Trump and billionaire ally Elon Musk, who called the legislative plays from afar.

The Baltimore Banner thanks its sponsors. Become one.

The House is scheduled to elect the next speaker on Jan. 3, 2025, when the new Congress convenes. Republicans will have an exceedingly narrow majority, 220-215, leaving Johnson little margin for error as he tries to win the speaker’s gavel.

One House Republican, Rep. Andy Harris of Maryland, criticized Republicans for the deficit spending in the bill and said he was now “undecided” about the GOP leadership. Others are signaling unhappiness with Johnson as well.

Yet Trump’s last-minute debt limit demand was almost an impossible ask, and Johnson had almost no choice but to work around that pressure. The speaker knew there wouldn’t be enough support within the slim Republican majority alone to pass any funding package because many Republican deficit hawks prefer to cut the federal government and would not allow more debt.

Instead, the Republicans, who will have full control of the White House, House and Senate in the new year, with big plans for tax cuts and other priorities, are showing they must routinely rely on Democrats for the votes needed to keep up with the routine operations of governing.

The federal debt stands at roughly $36 trillion, and the spike in inflation after the coronavirus pandemic has pushed up the government’s borrowing costs such that debt service next year will exceed spending on national security. The last time lawmakers raised the debt limit was June 2023. Rather than raise the limit by a dollar amount, lawmakers suspended the debt limit through Jan. 1, 2025.

The Baltimore Banner thanks its sponsors. Become one.

There is no need to raise that limit right now because the Treasury Department can begin using what it calls “extraordinary measures” to ensure that America does not default on its debts. Some estimate these accounting maneuvers could push the default deadline to the summer of 2025. But that’s what Trump wanted to avoid because an increase would be needed while he was president.

GOP leaders said the debt ceiling would be debated as part of tax and border packages in the new year. Republicans made a so-called handshake agreement to raise the debt limit at that time while also cutting $2.5 trillion in spending over 10 years.

It was essentially the same deal that flopped Thursday night — minus Trump’s debt demand. But it’s far smaller than the original deal Johnson struck with Democratic and Republican leaders — a 1,500-page bill that Trump and Musk rejected, forcing him to start over. It was stuffed with a long list of other bills — including much-derided pay raises for lawmakers — but also other measures with broad bipartisan support that now have a tougher path to becoming law.

Trump, who has not yet been sworn into office, is showing the power but also the limits of his sway with Congress, as he intervenes and orchestrates affairs from Mar-a-Lago alongside Musk, who is heading up the new Department of Government Efficiency.

Baltimore Banner reporter Pamela Wood contributed to this story.