Nvidia closed at an all-time high as investors gain confidence that the chipmaker will power through China restrictions.