The Senate and House of Representatives have until midnight Thursday (0500 GMT Friday) to pass a stopgap spending measure and send it to the president for his signature, or risk a second shutdown in three weeks.

The House narrowly passed the bill just after 5:30 a.m. EST Friday in a 240-186 vote, with 73 Democrats joining the 167 Republicans in supporting the measure.

Beyond $300 billion worth of increases for the military and domestic programs, the agreement adds $89 billion in overdue disaster aid for hurricane-slammed Texas, Florida and Puerto Rico, a politically charged increase in the government's borrowing cap and a grab bag of health and tax provisions. However, Senate Majority Leader Mitch McConnell has repeatedly promised to start Senate floor debate on immigration reform, including a fix for DACA recipients, after spending issues are resolved.

Exact spending would be left to the appropriations committees but included in the funding is $10 billion to invest in infrastructure, $2.9 billion for child care and $3 billion to combat opioid and substance abuse, CNN reported. It ultimately passed the Senate by a vote of 71 to 28.

House Democratic Leader Nancy Pelosi was less measured, saying the White House move is "part of a unsafe and desperate pattern of cover-up on the part of the president".

Democrats object to increased military spending without an equal increase in domestic spending. Earlier in the week, Trump said he would "love" to see a government shutdown if Democrats do not agree to his demands.

Voting in the House is now underway. "Make no mistake, I will always stand up for fiscal responsibility, regardless of which party is in power, and I will continue to call the Republican party home to the ideas that led to Americans trusting us with government in the first place", Paul said.

House Democratic leaders opposed the measure - arguing it should resolve the plight of Dreamers - but not with all their might.

United States stocks rebound in choppy trading; S&P/TSX composite index still down
Had the Dow lost any ground on Friday, it would have been the index's worst week since October 2008, during the financial crisis. Other Asian share indexes also were lower, with Hong Kong's Hang Seng down 4.3 percent and Japan's Nikkei 225 3.2 percent lower.

The House Intelligence Committee might have a wall before the border does
A spokesman for Nunes did not respond to a request for comment on Rooney's characterization of the committee. Republicans in the House are building a wall. "I swear to God I didn't know that", he said.

Trump, Democrats head toward immigration showdown
Majority Leader Mitch McConnell of Kentucky called the plan a "significant agreement" that gives both parties what they want. Pelosi filibustered House business for over eight hours with a marathon floor speech demanding a vote on DACA .

Minority leader Nancy Pelosi delivered a record-breaking eight hour speech, demanding that the House speaker hold a vote on a separate bill.

"I'm greatly disappointed that the Speaker does not have the courage to lift the shadow of fear from the lives of these inspiring young people", Pelosi said in a statement, referring to House Speaker Paul Ryan.

The rebellion that simmered among Republicans and Democrats over the budget agreement boiled over when a determined Paul brought the Senate's work to a halt.

Republican and Democratic leaders in the Senate are nearing agreement on a two-year budget bill to avoid another government shutdown, Senate Democratic Leader Charles Schumer said Tuesday. Really who is to blame?

There's no obvious compromise that could win the 60 votes from Republicans and Democrats needed to prevail in the Senate.

"This bill represents a significant, bipartisan step forward". They say Nunes' memo is designed as a distraction from the probe, which is looking into whether Trump's campaign was in any way connected to the Russian interference.

Dreamers were shielded from deportation under the Obama-era program called Deferred Action for Childhood Arrivals (DACA).