The Senate has voted to avoid a financial default and reopen the government after a 16-day partial shutdown.
The vote was 81-18 Wednesday night. The measure now heads to the House, which is expected to back the bill before day's end.
Senate passage came several hours after Majority Leader Harry Reid and Minority Leader Mitch McConnell announced the bipartisan compromise.
The bill would reopen the government through Jan. 15 and permit the Treasury to borrow normally through Feb. 7 or perhaps a month longer.
Congress faced a deadline of 11:59 p.m. on Thursday. That's when Treasury Secretary Jacob Lew had said the government would reach the current $16.7 trillion debt limit and could no longer borrow to meet its obligations.