Actually, they may not have. If the warrant was based on faulty or false information, and it can be shown that the authorities made no attempt to verify the information, it may not have been a legal search warrant. Just because a Judge gave a signature somewhere does not automatically guarantee legality. This will be especially the case if it turns out that somewhere in the chain someone actually knew the information was misleading.