Judge Wright said the tactic violates the Fourth Amendment protecting against illegal search and seizure.