The Supreme Court's job is not to legislate.
I'd highly recommend a podcast called 'Five Four' where they talk about the supreme court as a political body, rather than as the impartial "balls and strikes" role that if purports to be.
Roe vs Wade is an excellent example of this. Which is why finally getting rid of it was a good thing.