The government unequivocally has the right and obligation to enforce federal law. To what extent and by which mechanisms they should do this is a different question altogether but this issue is hardly about 'dictating what other people can do with their own lives in their homes' as was the case with other laws like anti-LGBT.
That's literally the point of law. One person writes the law, and it dictates what others can and can't do with their lives. Are you an anarchist? Or are you just not thinking clearly about what you are saying?
If thing X demonstrably causes major harm to individuals, then it is often in the purview of government to restrict adults from exposing minors to X.
And, yes, you might want to take a look at your moral code to see if it's a bit broken. I think mine is operating fine!