You can use the official Rotate behavior, but you will need to stop it when the sprite reaches the target angle.
It's much easier to use this addon:
c2rexplugins.weebly.com/rex_rotateto.html
You can also rotate the sprite with events, for example "On every tick set angle to anglelerp(sprite.angle, targetAngle, dt)"