Such announcements aren’t without political risks, as OpenAI learned when Trump adviser Elon Musk criticized the deal on the social network he owns.