The judge allowed the warrant based on the information she got from the police chief, which is questionable and will have to be sorted out in court, period.
According to the newspaper’s attorney, who of course says it was legal!
And this memo he issued for “interested media outlets” outlines the how and why.
If you’re an attorney and feel so strongly about this, perhaps you can represent the (now former) police chief, pro bono.