Nvidia said it planned to invest as much as $100 billion in OpenAI to support new data centers and other artificial intelligence infrastructure.