I actually take a bit of a different view, largely because I am completely opposed to the ends justifying the means.
Your position here is that the ends justify the means, that it's okay for the government to violate constitutional provisions if it achieves an end that you believe is worthwhile. I disagree - I think the ends is worthwhile, but I don't think that justifies the means. The problem for me is that what one views as a worthwhile end is highly subjective and can be extremely variable. It's subject to populist whims, the rhetoric of ideologues, and the pressures of special interest groups. What is viewed as "worthwhile ends" in the future could very easily end up being something that every one of us finds abhorrent.
If we abuse the means for something we all think is worthwhile now, there is nothing at all to prevent someone else from abusing the means in the exact same way in the future for something we would find horrific.
It gets messy and complicated, but I don't find fault with SCOTUS for overturning Roe v. Wade. The means by which it got put in place have always been sketchy, and the reasoning by which it was overturned is something I find justifiable and rational. I 100% am opposed to the rush from states to make abortion illegal - it hurts to my core. But I still don't think SCOTUS was wrong to overturn it, because the reasoning used to pass it was bad. I'd rather start the process over and seek a fully supported and justifiable law than have it hinge on a sketchy interpretation that can be applied to make other laws that I do not support.