They were right, but probably for the wrong reasons.
They appear to have been right for the right reasons.
The court said they were not on school property, and thus, it was none of their business.
And if this article interprets the courts position correctly, then the court was right, for the right reasons. Especially with public schools, they have absolutely no right to tell anybody what to do on their own time off school property.