When the government has potential evidence against you, you may be able to suppress that evidence. That means that they cannot introduce it at trial. In this case, you would want to file a Motion to Suppress. There are many grounds upon which to suppress evidence. Ultimately, a judge will decide the issue.