I totally agree the law is a legal quagmire, with the sole aim of getting something in front of the sympathetic Supremes while the going is good.
However I have highlighted the medical problem. The law can make these definitions. But reality must surely intervene. Medical evidence from many competent sources says the six-week heartbeat test is bollox. Human embryos do not develop like that.
The point here is the text of a law can
define "white" as "black" and "up" is "down" for the purposes of the content that follows. But that is fantasy. To bring a case under that law before any competent bench should have it tossed out with prejudice. At some point, a jurist will have to say that the definitions in the law are not in fact true at all. They are demonstrably false. And as such, the law that follows based on those untrue definitions cannot be enforced.
The contrary is that any law can have any definition of any thing be whatever the framers would like it to be. A law could be made, for example, that the Harry Potter world is the true world, and the whole state and all its citizens will now have to abide by the J.K. Rowling Laws of Wizardry as specified by the Ministry of The Dark Arts (or whatever I'm not a Potterist!

). Utter nonsense, but enforceable by gun-toting vigilantes (or Death Eaters in this case).