The House of Representatives passed the Senate's plan to end the partial government shutdown after more than two weeks.
The deal came on day 16 of the shutdown.
It also came a day before the debt ceiling deadline, in which the treasury department said the government would run out of money to pay its bills.
The deal -- now passed by both chambers of Congress -- extends current government spending levels until January 15 and raises the debt ceiling enough to keep the government's bills paid through February 7.
The measure also contains a measure requiring the government to confirm the eligibility of people seeking federal subsidies under Obamacare.
The White House labeled that provision as minor.