The House on Tuesday passed a measure to extend government funding into December, averting a shutdown in the final stretch of the midterm campaign.

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.