How can I rotate a video by a few degrees?
Import the video in FCPX (don't worry about creating optimised/proxy media, etc).
Create a project and add the clip.
Use Transform (⇧T) to rotate (and scale) the clip as appropriate.
Export.