Nasdaq, S&P 500, Dow Jones finish higher in choppy pre-holiday trading