It decided to invalidate the smallest possible portion of the statute, excising only the viewpoint-based proviso rather than the entire exception of which it is a part.
It invalidated a small part of the statute.