Nvidia has led the artificial intelligence boom to become one of the stock market’s biggest companies, as tech giants continue to spend heavily on the company's chips.