“You are right. The police are not the bad guys here. It is either the judge or people who lied to the judge.”
My guess is that they have a “warrant factory” and that it is the police that filled out the warrant application, based solely on some blanket warrants that gather credit card purchases of “drug paraphenalia.”
If that is the case, then it IS the cops that lied to the judge. In addition, the judge is culpable because he/she is nothing more than a rubber stamp.
Moreover, it is the cops who were attempting to ram down the man’s door.
Not many hardened drug dealers, I expect, would open the door for intruders attempting to barge in.