NBC News: S&P 500 ends higher after Trump attacks Fed