Suppose a legislature passes a law calling the biblcal teachings about homosexuality "hate speech". Would you have disdain for a judge who strikes it down?
Absolutely not, and let me explain why: Vulgarity and obscenity don't fall within the First Amendment. Religious and political speech do. That said, I don't see why any municipality would bother legislating swear words. Anyone who actually intruded on another's rights while using them would be disturbing the peace, and probably acting in a manner that would disturb the speech even with clean language.