These "morality" clauses should be illegal, because they require the government discriminate against an employee on the basis of sexual orientation.
Contracts are enforced by the government.
Having a "morality" or religion clause in there violates the separation of church and state, especially when it says the parties to the contract have to do something against federal law, namely discriminate against homosexual people.