Nvidia matched its intraday high and headed for a record close as investors gain confidence that the chipmaker will power through China restrictions.