S&P, Dow edge to another record closing high as Nvidia momentum endures