Dow Jones makes a new closing high but S&P 500, Nasdaq give up gains