State-Constrained Rotational and Translational Motion Control with Applications to Monolithic and Distributed Spacecraft