I agree with your overall point 100%. Historical clarification, the “viability” language was established in Planned Parenthood v. Casey (1992). Justice O’Connor was the co-author of the majority ruling that established the viability framework and the undue burden standard.