Superficial rational aside, the court sustained the law based on the erroneous intent of depriving the aforementioned classes of their constitutional rights to protect other classes. It's bad law, and cannot be used as precedent.