WASHINGTON — The House swiftly approved $95 billion in foreign aid for Ukraine, Israel and other U.S. allies in a rare Saturday session as Democrats and Republicans banded together after months of political turmoil over renewed American support for repelling Russia’s invasion.

With overwhelming support, the $61 billion in aid for Ukraine passed in a matter of minutes, a strong showing as American lawmakers race to deliver a fresh round of U.S. support to the war-torn ally. Some cheered on the House floor and waved blue-and-yellow flags of Ukraine.

Aid to Israel and the other allies also won approval by healthy margins, as did a measure to clamp down on the popular platform TikTok, signs of how unique coalitions formed to push the separate bills forward. The package will go to the Senate, where passage in the coming days is nearly assured. President Joe Biden has promised to sign it immediately.

“We did our work here, and I think history will judge it well,” said embattled Speaker Mike Johnson, R-La., who risked his own job to marshal the package to passage.

Biden, in a statement, thanked Johnson, Democratic leader Hakeem Jeffries and the bipartisan coalition of lawmakers “who voted to put our national security first.”

“I urge the Senate to quickly send this package to my desk so that I can sign it into law and we can quickly send weapons and equipment to Ukraine to meet their urgent battlefield needs,” Biden said.

President Volodymyr Zelenskyy of Ukraine said he was “grateful” to both parties in the House and “personally Speaker Mike Johnson for the decision that keeps history on the right track,” he said on X.

“Thank you, America!” he said on X, formerly Twitter.

The weekend scene presented a striking display of congressional action after months of dysfunction and stalemate fueled by Republicans, who hold the majority but are deeply split over foreign aid, particularly for Ukraine as it fights Russia’s invasion.

Johnson relied on Democratic support to ensure the military and humanitarian support, with the first major package for Ukraine since December 2022, won approval.

Passage through the House cleared away the biggest hurdle to Biden’s funding request, first made in October as Ukraine’s military supplies began to run low.

The GOP-controlled House struggled for months over what to do, first demanding that any assistance for Ukraine be tied to policy changes at the U.S.-Mexico border, only to immediately reject a bipartisan Senate offer along those very lines.

Reaching an endgame has been an excruciating lift for Johnson that has tested both his resolve and his support among Republicans, with a small but growing number now openly urging his removal from the speaker’s office. Yet congressional leaders cast the votes as a turning point in history — an urgent sacrifice as U.S. allies are beleaguered by wars and threats from continental Europe to the Middle East to the Indo-Pacific.

“Sometimes when you are living history, as we are today, you don’t understand the significance of the actions of the votes that we make on this House floor, of the effect that it will have down the road,” said New York Rep. Gregory Meeks, the top Democrat on the House Foreign Affairs Committee. “This is a historic moment.”

Opponents, particularly the hard-right Republicans from Johnson’s majority, argued that the U.S. should focus on the home front, addressing domestic border security and the nation’s rising debt load, and they warned against spending more money, which largely flows to American defense manufacturers, to produce weaponry used overseas.

Still, Congress has seen a stream of world leaders visit in recent months, from Zelenskyy to Japanese Prime Minister Fumio Kishida, all but pleading with lawmakers to approve the aid. Globally, the delay left many questioning America’s commitment to its allies.

At stake has been one of Biden’s top foreign policy priorities — halting Russian President Vladimir Putin’s advance in Europe.

While aid for Ukraine failed to win a majority of Republicans, several dozen progressive Democrats voted against the bill aiding Israel as they demanded an end to the bombardment of Gaza that has killed thousands of civilians.

At the same time, Donald Trump, the presumptive Republican presidential nominee, has loomed large over the fight, weighing in from afar via social media statements and phone calls with lawmakers as he tilts the GOP to a more isolationist stance with his “America First” brand of politics.

Ukraine’s defense once enjoyed robust, bipartisan support in Congress, but as the war enters its third year, a bulk of Republicans oppose further aid. Trump ally Rep. Marjorie Taylor Greene, R-Ga., offered an amendment to zero out the money, but it was rejected.

The ultraconservative House Freedom Caucus has derided the legislation as the “America Last” foreign wars package.

Johnson’s hold on the speaker’s gavel has also grown more tenuous as three Republicans, led by Greene, supported a “motion to vacate” that can lead to a vote on removing the speaker.

Senate Majority Leader Chuck Schumer said the Senate would begin procedural votes on the package Tuesday, saying, “Our allies across the world have been waiting for this moment.”