Governments have history of legislating morality
Cognizant of the fact that democracies usually adapt to changing times, I’m also aware that governments have always legislated morality.
The Republican Party was founded specifically to address the issue of slavery, and it did.
The Democratic Party supported slavery and later segregation.
Societies, in general, pass laws forbidding murder, theft and assault, including child and spousal abuse.
There was a time when slavery, segregation, sibling marriages and human sacrifice were legal. Governments legislated morality by abolishing those practices.