The U.S. Senate approved a two-year spending plan early Friday morning, but not before a last-minute delay forced a second government shutdown in three weeks.

The Senate approved the measure shortly before 2 a.m. EST. The delays were caused by Sen. Rand Paul, R-Ky. who earlier objected to the bill for increasing the deficit.

However, the measure also faces opposition in the House, where Democrats hope to force consideration of a plan to help so-called dreamers -- undocumented U.S. residents who fall under the Deferred Action for Childhood Arrivals policy revoked by President Trump.

The House is expected to take up the measure later on Friday morning.

The government was forced to shut down for three days in January after Senate leaders failed to overcome a Democrat filibuster over the DACA issue.

This article was written by a staff member of TheStreet.

More from Investing

Hedge Fund Investor: 'Stupidity Is Not Cyclical'

Hedge Fund Investor: 'Stupidity Is Not Cyclical'

PPG Industries Top Q4 Earnings, Cautions on 2019 Amid 'Economic Uncertainty'

PPG Industries Top Q4 Earnings, Cautions on 2019 Amid 'Economic Uncertainty'

BB&T, KeyCorp Shares Drop After Earnings Reports

BB&T, KeyCorp Shares Drop After Earnings Reports

Taiwan Semiconductor Sales Forecast Hammers Chipmakers as Apple Warning Ripples

Taiwan Semiconductor Sales Forecast Hammers Chipmakers as Apple Warning Ripples

Live at 11:30 a.m. ET: Jim Cramer Unveils His 10 Tips for a Bear Market

Live at 11:30 a.m. ET: Jim Cramer Unveils His 10 Tips for a Bear Market