Microsoft and OpenAI on Tuesday said they had reached a deal to allow the ChatGPT maker to restructure itself into a public benefit corporation, valuing OpenAI at $500 billion and clearing the way for it to become a publicly traded company.