When an entity with NoAI enabled is rotated using commands, only their head is actually rotated, but their body is in the same position. This Minecraft Forum Post details the same problem. Many solutions were suggested, but all were a fail. The following solutions were tried:
Use teleport to change the rotation
Enable AI while rotating, then disable later
Teleport thew entity to itself in an attempt to forcefully update the body rotation
Use nbt data instead of teleport command to set the rotation value.
Dupe of MC-97963