 As John Roberts noted, the most likely outcome then, if the decision went the other way, is that presidents would be too timid to act forever fear of indictment after office. You don't want presidents to be worried about being indicted after office because of a decision related to their job. And they made very clear if he does something while in office that's not related to carrying out the function of president, he can be indicted.