The President doing illegal things has no bearing on the admissibility of evidence.
The judge decides what is allowed to be used at trial. If the prosecution ignore the judge and presents it anyway then the judge rules the case a mistrial. If the judge allows it then the court of appeal would overturn the ruling.
This doesn't stop them from illegally obtaining the evidence, but it provides the ruling that prevents it from being used at trial.