The ChatGPT-maker is restructuring to command a for-profit business in addition to its nonprofit foundation amid changes to its partnership with Microsoft.