Costing tens of thousands of dollars each, Nvidia Corp.’s pioneering AI chips make up a hefty chunk of the $400 billion that Big Tech plans to invest this year — a bill expected to hit $3 trillion by 2029.