The US Congress approved a stopgap funding bill Wednesday in a rare show of cross-party unity to keep federal agencies running for another two months and avert a damaging Thanksgiving holiday-season government shutdown.

With the clock ticking down to the deadline of midnight Friday-into-Saturday, the Senate agreed by an overwhelming 87 votes to 11 to keep the lights on through mid-January, with a resolution that had already advanced from the House.