House passes trillion-dollar bill
Republicans have pushed a 1.1 trillion US dollar (£699.4 billion) bill financing US government agencies through the House of Representatives after Barack Obama phoned Democratic lawmakers and urged them to back the measure.
The House approved the measure late last night by 219-206. The compromise bill keeps agencies funded through to next September.
Many conservatives opposed it because it did not block the president's recent executive actions on immigration.
A large majority of House Democrats opposed it because of provisions easing some restrictions on banks and allowing higher political contributions by big donors.
Mr Obama backed the bill and called wavering Democratic lawmakers to persuade them to help it pass.
The bill must now be approved by the Democratic-run Senate.
Funding for federal agencies was expiring at midnight. Lawmakers were ready to pass short-term legislation keeping government doors open.