 There's one bucket where the president is exercising core power, commander in chief, the part in power, take care of the laws are faithfully executed. Things the constitutional text says it's the president's job. He's absolutely immune for anything done in any of those capacities. And what that means is really confusing.