"And who made the law ?"
The politicians in Texas made it. It was designed so that the medical professionals could intervene when a parent let their emotions get in the way of the best interest of the child.
It was signed into law under bush. Ironically Sun Hudson faced the same fate when the schiavo case surfaced. Hmmm, I wonder why no fuss about him.