You're jumping to politics when legal philosophy explains the correlation more simply.
As they've written in their opinions, they have certain legal approaches to the questions before them, and it is very common to look at those approaches--not politics--in predicting outcomes.
This idea of the political Court is one we should be pushing back against as it isn't helathy or helpful.