The U.S. Congress passed an 11th-hour funding bill Saturday to keep federal agencies running for another 45 days and avert a costly government shutdown — although the deal left out aid to war-torn Ukraine requested by President Joe Biden.

Three hours before the midnight Saturday deadline, the Senate voted to keep the lights on through mid-November with a resolution that had advanced earlier from the House of Representatives in a day of high-stakes brinkmanship on Capitol Hill.

The last-ditch "continuing resolution" was pitched by House Speaker Kevin McCarthy as millions of public workers looked set to be sent home unpaid, upending government functions from military operations to food aid to federal policymaking.