The rise in stocks follows a budget standoff in Washington that kept hundreds of thousands of federal workers from their jobs for 16 days and could have forced the Government to miss payments on its debt.
Congress agreed on Thursday (NZT) to fund the Government and allow it to borrow through early next year.
The S&P 500 set a record for the second straight day.
The broad index of 500 companies, up 22 per cent this year, added 11.35 points, or 0.7 per cent, to a record 1744.50. The gain this year is the index's best since 2009, when it began its bull run.
Since its recession low in March of that year, the S&P 500 has soared 158 per cent, driven largely by a rebound in earnings, a housing recovery, greater investor confidence and the economic stimulus programme by the Federal Reserve.
The Nasdaq composite was up 51.13 points, or 1.3 per cent, at 3914.28. The Dow Jones industrial average rose 28 points, or 0.2 per cent, to 15,399.65, and is 277 points below its own record.
Christine Short, a senior manager at S&P Capital IQ, said investors are relieved that Washington pulled back from the abyss by extending the US borrowing authority until February 7. But she's not so sure how long the celebratory mood might last.
"We just bought ourselves a little more time, and the market seems to like that," she said.
"But we're likely to go through the same cycle again in three months."
Another concern is earnings. Despite good reports from a few big companies on Saturday, the third-quarter reporting season has just started and most companies aren't expected to post blowout results.
Earnings for S&P 500 companies are expected to have grown 3.4 per cent from a year earlier, the smallest quarterly increase in a year, according to S&P Capital IQ.
At the start of this year, third-quarter earnings were expected to grow at nearly triple that pace.
What's driven stock prices up this year hasn't been earnings as much as investors' willingness to value them more.
At the start of the year, stock buyers were paying $14 for every $1 of S&P 500 earnings, according to S&P Capital IQ. Now, they are paying more than $16.
Investors will have a better idea of the US corporate profit picture next week when several big companies report results, including McDonalds tomorrow and Boeing and Caterpillar on Thursday and Ford on Friday. AP