Like it or not, ever since SCOTUS seized the unconstitutional power to overturn legislation, they have been a political entity, effectively legislating.
The difference with recent rulings is that they've abandoned any pretense of political independence or legitimacy.