Unconstitutional laws are constitutional until you attempt to enforce them against someone with deep pockets (and for several years thereafter while the appellate courts do their thing).
They don't have to carry enforcement all the way through to a sentencing; merely charging citizens is a huge annoyance and threat that'll loom over their heads.