See my ofn-layer-aligner script(*). Basically you define a path with two pairs of points: the target points, and the moved points on the layer that should be adjusted, and the script rotates and scales the layer so that the second pair of points overlays the first.
(*) Installation instructions at the bottom of the linked page, and a short HTML write-up in the ZIP.
(*) Installation instructions at the bottom of the linked page, and a short HTML write-up in the ZIP.