The Dow Jones Industrial Average gained 91 points, erasing early losses to hit a new record, while tech stocks dragged down the S&P 500 and Nasdaq Composite.