There's that obfuscating phrase again, "you can't legislate morality."
All of legislation is inherently and in effect, going about the business of determining morality.
We should stop promulgating that misleading phrase and instead say, "we don't try to legislate belief."
I may be taking this phrase out of context, but are you saying that legislators determine society's moral standards?