Even if judges prohibit such evidence on the grounds of it being illegally obtained, you will still find that prosecutors will use that evidence to find other evidence and for constructing a case that doesn't use that illegally obtained evidence. https://en.wikipedia.org/wiki/Parallel_construction