Nvidia ballooned to a record valuation after the artificial intelligence chip giant’s highly awaited earnings report bested Wall Street’s lofty expectations, lifting major stock indexes to their top levels ever.