A Kansas church that attracted nationwide attention for its angry, anti-gay protests at the funerals of U.S. military members has won its appeal at the Supreme Court, an issue testing the competing constitutional limits of free speech and privacy.

The justices by a 8-1 vote on Wednesday said members of the Westboro Baptist Church had a right to promote what they call a broad-based message on public matters such as wars.

The father of a fallen Marine had sued the small church, saying those protests amounted to targeted harassment and an intentional infliction of emotional distress.

"Speech is powerful. It can stir people to action, move them to tears of both joy and sorrow, and– as it did here– inflict great pain," Chief Justice John Roberts wrote. "On the facts before us, we cannot react to that pain by punishing the speaker."

About This Blog

This blog â€“ This Just In â€“ will no longer be updated. Looking for the freshest news from CNN? Go to our ever-popular CNN.com homepage on your desktop or your mobile device, and join the party at @cnnbrk, the world's most-followed account for news.