Microsoft announced a new multiyear, multibillion-dollar investment with the artificial intelligence lab OpenAI.