The S&P 500 rose 0.1 percent, with energy and consumer discretionary leading advancers.
The Dow Jones industrial average rose about 63 points, with Nike contributing the most gains.
The tech-heavy index,however, has easily outperformed the Dow and the S&P this year, surging 14.1 percent and posted its largest first-half gains since 2009.
The Dow Jones industrial average rose 62.60 points, or 0.29 percent, to close at 21,349.63, with Nike leading advancers and Goldman Sachs lagging.
The S&P 500 gained 3.71 points, or 0.15 percent, to end at 2,423.41, with industrials leading five sectors higher and utilities underperforming.