Can a search be legal but the items seized be unlawful? Check out the link for a recent Supreme Court decision regarding this exact issue.
http://www.mondaq.com/unitedstates/article.asp?articleid=224624
http://www.mondaq.com/unitedstates/article.asp?articleid=224624