This was literally the case when we look at history surrounding Jim Crowe laws. They were purpose built to disenfranchise. You always have to wonder what the actual intent of a given law is. The incentive to work in an ulterior motive within the text is always going to be there. And we have not designed a system to be robust to that. Most we can do is attempt to pass yet another law that might rectify the “bad” one but that one itself might be filled with bullshit. Pork barrel politics is a real phenomenon and a side effect of our legal system.