US shares surged after the Senate announced a deal to end the partial government shutdown and avoid a debt default.
The Dow Jones Industrial Average, Nasdaq, and S&P 500 all closed up by more than 1%.
The deal would fund the government until 15 January, and extends the debt ceiling until 7 February.
After the market closed the Senate voted in favour of the deal, leaving the House of Representatives to vote.
The Republican leadership in the House has said it will support the measure.
As well as providing the government with funding, the bill will create a panel of Senate and House members to draw up a longer-term budget agreement.
The Dow Jones rose 206 points to close at 15,374. The S&P 500 was up 23 points to 1,721 and the Nasdaq rose 45 points to 3,839.
Markets across Asia, from Japan to Australia, also rallied on the news of a deal.
In Tokyo, shares hit a three-week high. And in Australia, the All Ordinaries index and the S&P 200 climbed by 0.5% at the start of trade.
Source: BBC