Register the devices to the new tenant (Tenant B). After deleting the registration in Tenant A, re-register the device into Tenant B. You can use the Autopilot devices pane in the Intune admin center or the Import-AutopilotDevice cmdlet to register the devices. The devices will be assigned to Tenant B but still managed by Tenant A. More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.