The House Wednesday evening approved by a vote of 285-144 legislation to reopen the government and raise the debt limit.
President Obama said Wednesday evening he would sign the measure as soon as he gets it.
A majority of Republicans opposed the legislation, with 144 voting no and 87 voting yes, while all Democrats present supported it.
The bill would lift the debt ceiling until February 7 and fund government operations through January 15. House and Senate negotiators must begin negotiations on an annual budget and come up with an agreement by December 13.
The legislation also includes a measure that would help ensure people who get subsidies to purchase health insurance are eligible for the benefit.