You cannot federate the *.onmicrosoft.com domain. You will need to federate a custom domain. So first you will need to register the domain in the Azure AD blade: https://learn.microsoft.com/en-us/azure/active-directory/fundamentals/add-custom-domain
Then you woul need to follow the steps here: https://learn.microsoft.com/en-us/azure/active-directory/hybrid/how-to-connect-fed-whatis Have a look and let us know if you have questions.