Nvidia had held the top spot as the most valuable company since June 2025, when it took the crown from Microsoft.