Nvidia stock rebounded from an early morning slump on Tuesday as AI stocks shook off the tariff shock to lead Nasdaq gainers.