The show is based on Murphy's own life. Hence the Glee homage. Why should he mangle it into "my life... if I was a lawyer with a unisex bathroom" or "my life.... if I was a penniless pool cleaner"? Why not "my life.... if I was creator and producer of a TV musical.... which I am"?
Even if you don't share her views, others do. Even beyond them, more extreme than anything that character has ever said, and they genuinely believe it. And Murphy clearly intends to address them by including them. Without her, the right-wing hate-mongers can just ignore it as anti-puppies, anti-sunshine, the downfall of society and brainwashing indoctrination of some evil plot. Without ever having watched it. Because they're all sinning, fornicating sodomites and single mothers conceiving a poor child through unnatural and unspeakable means, solely to corrupt the helpless baby and throw it into their stew of evil, mwahahaha, while forcing others to do the same. But their views are represented in there to an extent and put out there for others to think about and be ready to counter. And with a little luck, at least one of the little bible-bashing cretins might watch long enough to open their tiny minds a little instead of wailing about someone please think of the children.