I believe in a democracy the state must act lawfully in all things. If they do not, then by definition it is not a democracy. I want to live in a democracy and warts and all. If that makes me ignorant ...ok
It absolutely should. But it should also allow for the possibility that it isn't omniscient, and provide the latitude for the people in charge to swiftly do what must be done to keep that democracy safe. Rules exist for a reason. But smart and responsible people know when those rules are not appropriate.
It's fine for us to come back now and wonder how we might improve the framework. It's not fine to say that there was a loophole and therefore we should put them all in jail, undo everything and start again.