U.S. stocks rose and erased their losses for the week so far, as Nvidia and other technology companies led the way. The S&P 500 climbed 0.8% Wednesday for a second straight gain following Monday’s swoon. The Dow Jones Industrial Average added 0.6%, and the Nasdaq composite climbed 1.3%. Nvidia wa…