Here is Judge Chutkan's order denying Trump's motion to dismiss based on claims of immunity: https://storage.courtlistener.com/recap/gov.uscourts.dcd.258149/gov.uscourts.dcd.258149.171.0.pdf
A motion to dismiss is a pretrial motion that says "even if everything the prosecution says is true, there is no case and nothing to put before the jury because I win as a matter of law."
These are always uphill battles.
Here, Trump put forward a novel theory about presidential immunity.
1/

