Some justices said they were troubled by inconsistent standards that allowed certain words and displays in some contexts but not in others.