Microsoft brings S&P 500, Nasdaq back into record territory