S&P 500, NASDAQ set new highs as Apple passes $2 trillion