Wall Street rose on Thursday, buoyed by popular technology companies including Facebook and Alphabet, while shares of yoga pants seller Lululemon Athletica also worked up a sweat.
"Technology once again is leading the way here," said Peter Cardillo, chief market economist at First Standard Financial in New York.
The top-performing sector this year, the S&P 500 information technology index <.splrct> had fallen nearly 3 percent since Nov. 28, with some investors cautious about high earnings multiples.
Strong earnings and expectations of corporate tax cuts promised by President Donald Trump have pushed stocks up to record levels this year.
The Senate Republicans on Wednesday agreed to talks with the House of Representatives on the tax bill amid early signs that lawmakers could agree on a final bill ahead of a self-imposed Dec. 22 deadline.
Thursday`s stock gains suggested investors were not overly worried about a deadline on Friday night faced by Trump and Congress to pass fresh spending legislation. If they cannot agree on the terms, parts of the federal government could shut down.
"Market participants are looking past the government shutdown," said Chad Morganlander, portfolio manager at Washington Crossing Advisors in Florham Park, New Jersey. "It`s a risk-on mood through the last trading session. That will continue into the weekend."
The Dow Jones Industrial Average <.dji> rose 0.29 percent to end at 24,211.48 points, while the S&P 500 <.spx> gained 0.29 percent to 2,636.98.
The Nasdaq Composite <.ixic> added 0.54 percent to 6,812.84.
Nine of the 11 major S&P 500 sectors were higher, with industrial <.splrci> and materials indexes <.splrcm> leading the gainers.
The S&P 500 consumer staples index <.splrcs> fell 0.93 percent, hurt by drops of at least 1.2 percent in Procter & Gamble
The number of Americans filing for unemployment benefits unexpectedly fell last week, suggesting a rapid tightening of the labour market.
The report comes ahead of more comprehensive government payrolls data on Friday that would be used by investors to gauge the strength of the labour market at a time when the Federal Reserve is almost certain to raise U.S. interest rates next week.
Advancing issues outnumbered declining ones on the NYSE by a 1.70-to-1 ratio; on Nasdaq, a 1.75-to-1 ratio favoured advancers.
About 6.4 billion shares changed hands on U.S. exchanges, below the 6.6 billion daily average for the past 20 trading days, according to Thomson Reuters data.