U.S. stocks edged higher on Thursday, pushing both the Dow Jones Industrial Average and S&P 500 to fresh records during an otherwise tame session.

The Dow rose 14.88 points to 35,499.85, a record close for the blue-chip index. The S&P 500 climbed 0.3% to 4,460.83, also a record. The Nasdaq Composite outperformed with a gain of 0.3% to end the day at 14,816.26.