As I recall, there is a Health and Safety code in California that allows the state to lock people up and force treatment for stuff like Tuberculosis. I remember we had at least one of those.
It wouldn't take much to use that law to lock up us evil, terrorist, anti-vax, enemies of the state, deplorable white devils, and threats to public safety.
.