The U.S. House of Representatives joined the Senate early on Friday morning in approving a bill to end an overnight federal shutdown, sparing Republicans further embarrassment and   averting serious interruption of the government’s business.

The stopgap funding and budget measure, approved by a 240-186 House vote, will go next to President Donald Trump.

The White House said in a statement that he will sign it into law, which would extend government funding through March 23.

The shutdown, which started at midnight, was the second this year under the Republican-controlled Congress and Trump, who played little role in attempts by party leaders earlier this week to head it off and end months of fiscal squabbling.

Click video below: