Actually, if the facts were what was reported on the news, the protesters were 1000 feet from the site of the funeral. This ruling, although frustrating in many ways, should reinforce the First Amendment and that can't be bad.
I'm not a religious person, but if I were, I would have to embrace the axiom that the Lord works in strange ways.