The Nasdaq Composite closed up 0.21% at 21,590.14,
Nvidia's earnings helped boost other chip names
Stocks surrendered early gains and closed lower after the White House