Sedition isn't lawful and it's what the immunity decision addressed.
And that wasn't anywhere near the amount of deference the president gets when it comes to emergency and war powers.