U.S. stocks rose on Wednesday, paring so far weekly losses, led by Nvidia and other technology companies.