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.
You can edit YouTube videos through YouTube Studio, as long as the video isn't in draft form. YouTube Studio is meant for more basic edits, like trimming and blurring parts of your video. For more ...