I think a number of people miss the point:
Under US federal law, people have the right to terminate a pregnancy. It is questionable if this Texas law is compliant with Roe Vs Wade; I suspect not.
Furthermore, a principle of common law is that an individual has the right to decide about their care and end-of-life treatment, and those decisions are to be respected and followed even after they are dead. In this case:
1. The dead woman did not want to be kept 'alive' on machines.
2. Her husband knows her wishes and wanted life support terminated.
3. Her family (parents) knew her wishes and wanted life support terminated.
However, the State of Texas has enacted a law that states that a person's rights concerning end-of-life care are suspended if they are pregnant, regardless of their wishes and their Supreme Court decision-guaranteed right to safe access to abortive treatment.
There's the noble sentiment that perhaps a fetus could be brought to viability and isn't that worth keeping her physiologically alive - that's utterly and completely irrelevant (even if it were possible, and we have no idea if that's the case). Under American law (and law in most democracies) people have the right to decide when to terminate treatment and to have those wishes respected and followed, even if pregnant (abortion is legal); Texas disagrees and the hospital in particular. Not that any of them with give a rat's ass about what happens to the child if and after it is born.
Though in this case, the family is hurting their stance by failing to consult with legal counsel.
The point is, the state has suspended the rights of an actual person - who has now died - in favour of a fetus which is NOT a person and never was under American law, and in doing so is causing emotional, psychological, and financial hardship to the family. That is all-around wrong. Government violations of Constitutionally-guaranteed rights are ALWAYS bad.