How should courts balance freedom of speech with religious sentiments in defamation cases?

A Supreme Court case involves a controversial remark and a defamation complaint. I want to understand how the judiciary can ensure both freedom of expression and respect for religious beliefs.