The justices may realize that only Republican Presidents are in danger from rogue DAs and may worry about being perceived as partisan if they rule in favor of immunity (since a majority of them were nominated by Republican Presidents).
If this is how they analyze it then they are, in fact, partisans.