A shutdown has been averted with the passage of several final funding bills. The four measures cover roughly $1.2 trillion in federal spending and will provide funding for several major departments, including Defense, Homeland Security, Health and Human Services, Labor, Housing and Urban Development, Transportation, and Education.

The Homeland Security funding bill narrowly passed 220–207 along party lines, with Rep. Thomas Massie casting the lone Republican “no” vote, while the remaining three bills were approved 341–88 as part of a legislative package known as a “minibus.”

Together, the bills make up the final four of the 12 annual appropriations measures Congress must pass to keep the government fully funded and prevent a shutdown later this month.

The legislation must still clear the Senate — along with two additional House-passed funding bills — before being sent to President Donald Trump for his signature. The Senate is not scheduled to return until next week, and an incoming winter storm expected to hit Washington could further complicate the timeline.