Dhaka, Bangladesh (BBN)- Republican and Democratic leaders of the US Senate have struck a cross-party deal to end a partial government shutdown and raise the US debt limit, reports BBC.
Their bill must also pass the House, where a small group of Republicans are expected to join Democrats to send the bill to President Barack Obama.
The bill extends the federal borrowing limit until 7 February and funds the government to 15 January.
It comes just a day before the deadline to raise the $16.7tn (£10.5tn) limit.
'Brink of disaster'
On the floor of the US Senate, Democratic leader Harry Reid called the legislation "historic", saying it would provide time for Congress to work toward a long-term budget agreement.
The plan would create a conference committee of Senate and House members tasked with drawing up a longer-term budget deal.
"Our country came to the brink of disaster," Mr Reid said. "This legislation ends a standoff that ground the work of Washington to a halt."
Republican Senate Minority Leader Mitch McConnell, Mr Reid's negotiating partner, said he was "confident" the government could reopen and avoid default under the proposed bill.
The deal "is far less than many of us hoped for, quite frankly, but far better than what some had fought," he said.
"Now it's time for Republicans to unite behind other crucial goals."
Politicians, bankers and economists warned of global economic consequences unless an agreement to raise the US government's borrowing limit were reached.
The US Treasury has been using what it has called "extraordinary measures" to pay its bills since the nation reached its current debt limit in May.
Those methods will be exhausted by 17 October, US Treasury Secretary Jack Lew has said, leaving the US unable to meet all of its debt and other fiscal obligations if the limit is not reached.
It remains unclear whether the bill can muster enough votes in the Republican-led House to pass before the 17 October deadline.
The House Democratic caucus may be joined by a smaller number of more moderate Republicans, analysts say.
Amid the legislative turmoil, the Fitch credit agency warned it could downgrade the US government's AAA rating, while the Dow Jones index ended the day down 133 points.
Hardline conservatives triggered the budget warfare 16 days ago, forcing the first government shutdown in 17 years by demanding that Mr Obama gut his signature healthcare overhaul plan.
Although both parties have fared badly in opinion polls during the fiscal standoff, Republicans have taken the brunt of the blame from voters.
BBN/SSR/AD-13Oct13-11:27 pm (BST)