U.S. stocks ended higher after Nvidia said it would invest up to $100 billion in OpenAI to help build out the ChatGPT maker’s ...