The official way to use copyrighted music on YouTube is through YouTube Studio > Audio library. The audio library includes free music and sound effects, some of which don't even require attribution.
After changes appeared for some users in August only to disappear a few weeks later, YouTube Music is now widely rolling out a major redesign of the Library tab. Before this update, the Library had ...