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