Stocks finished higher Tuesday, with the Dow Jones industrial average and the S&P 500 making fresh all-time highs and the Nasdaq overcoming Monday’s weakness with a 14 1/2-year high. Volume was higher than Monday on the NYSE and slightly lower on the Nasdaq, according to preliminary data.