You have this correct which I why it is so ridiculous that they not only agreed to hear this but did so in a way that both allows Trump to avoid prosecution and will result in a legal precedent that he can use to stay in office and commit crimes while there. Pretty great for Trump.