The stock market holds onto strong gains, climbing toward early highs on a better-than-expected consumer confidence reading.