The House passed a bill on Tuesday to extend government funding to December 11, clearing a path to avert a shutdown ahead of the midterm elections.

With just a few weeks to spare, the House approved legislation extending funding through mid-December.

The legislation, which already passed the Senate, now goes to President Donald Trump to become law, checking off the main item on Congress’ to-do list ahead of the midterms.