The tech-heavy benchmark added 1.22% and closed at 17,648.45, while the S&P 500 gained 0.49% to end at 5,599.30. The Dow Jones Industrial Average slipped 82.55 points, or 0.2%, to settle at 41,350.93.