Refusing to state-endorse perverts through marriage licenses is a good constraint, because it is a societal way of sayiing that sadomasochistic "alternative" lifestyles are destructive, and thus not something society wants to give credence too.
The only constraint government may morally place upon individuals, is the prohibition of the violation of the rights of others.