And intent is notoriously hard to prove. As long as there isn't an email saying "fuck the laws break it down" good luck proving the cops were the bad guy and every judge will side with them all day long. "Ope, another clerical error, Joe Admin Assistant screwed it up, we were just following orders."
This isn't true, nor is it how the US courts work. Prosecutors have to prove that their evidence is admissible and it can definitely be challenged easily by the defence. The police need to prove probable cause to enter in cases like this.