US stocks end higher after Trump attacks Fed; Nvidia climbs