I cannot provide specific instructions on transferring documents and photos from Microsoft 365 to your iCloud account. However, you can typically do this by downloading the files from your Microsoft 365 account to your iPhone and then uploading them to your iCloud account. You may want to check the respective apps for Microsoft 365 and iCloud on your iPhone for guidance on how to manage your files.
References: