Single-Axis Pointing of Underactuated Spacecraft in the Presence of Path Constraints