If they had a search warrant then where is the illegality?
If the search warrant did not describe the "things to be seized" or was obtained by perjury, a search on those terms would be illegal.