WASHINGTON — The House passed legislation Thursday to avoid another government shutdown by extending federal funding through Nov. 21.

The short-term budget bill known as a continuing resolution netted bipartisan support with a 301-123 vote.

The bill now heads to the Senate.

“It is critical that we avoid another government shutdown, which would harm our economy and hardworking Americans,” said New York Rep. Nita Lowey, chair of the House Appropriations Committee.

Three Democrats voted against the bill, while 76 Republicans supported the legislation.

Without passage of the stopgap bill, the government would shut down after Sept. 30. The legislation would give lawmakers until Thanksgiving break to come up with agreement on $1.4 trillion worth of appropriations bills.

The last government shutdown happened over Christmastime. The record-breaking 35-day debacle was over President Trump’s demands for money to build a wall on the Mexican border.

Funding for the wall and Department of Homeland Security operations still remains a sticking point.