The U.S. House of Representatives today overwhelmingly passed legislation that averted a government shutdown at midnight. The legislation will give lawmakers one more week to reach a deal on federal spending through the end of the year, Reuters reported.

The House passed the measure by a tally of 382-30, and sent it to the Senate, where Republican leaders hope to take it up later today, approve it and send it to President Trump to sign into law, the report said.

"The legislation should pass today and it will carry us through next week so that a bipartisan agreement can be reached," Senate Majority Leader Mitch McConnell (R-KY) said at the opening of the Senate's session.

House and Senate negotiators have been grappling over funding to create a health care program for coal miners permanent and whether to plug a gap in Puerto Rico's Medicaid program, the government health insurance program for the poor.

TheStreet Recommends

(What will move markets this quarter and how should investors position themselves ahead of time? Jim Cramer sat down with four of TheStreet's top columnists recently to get their views. Click hereto listen to his latest Trading Strategies roundtable with them and read their advice for stocks, bonds, forex and gold.)