Stocks rallied ahead of renewed shutdown risks, as confidence data came in softer but yield pressures eased. Data by YChartsThe S&P 500 (^GSPC 0.41%) rose 0.41% to 6,688.46 on Tuesday, while the Nasdaq Composite(^IXIC 0.30%) added 0.30% to 22,660.01. The Dow Jones Industrial Average (^DJI 0.18%) gained 0.18% to 46,397.89, finishing at a record high as blue-chip stocks outperformed. Meanwhile, the Conference Board's consumer confidence index came in weaker than expected, adding to caution about household spending power. Despite those headwinds, equities climbed as yields eased from recent highs and investors rotated into defensive and value-oriented names.