Having read the leaked opinion, it has nothing at all to do with religious ideology, but rather separation of powers. The fact is, Congress should have acted years ago (including most recently under Obama when they had a supermajority) to enshrine abortion rights in federal law since Roe was always on weak ground constitutionally.
Also, medical advancements and knowledge have grown tremendously in the last 50 years, so "the science" no longer views a 32 week old fetus as a parasite to be freely disposed of, and one doesn't need to be religious to see doing so as morally bad.
So then you're left with the logical problem of where to draw the line - 8 weeks? 24 weeks? 39 weeks? And that isn't something the Constitution covers, therefore it needs to be left to the states. Removing emotion from it, it was logically correct.