Her next of kin, according to long standing law, was her husband. Most of the time, family members and doctors can work out these decisions without the intervention of anyone else. In the event they can't, the local court was there to hear all sides and make a decision.
You can disagree with what was done, but we don't write law for each individual case. The question is was the process a fair one or do you want to change it? If you would change it how?
But laws are often quite specific about varying situations.
Saying "the government should not be involved" is too general.
The court erred in that they should have severed the relationship with the "husband" who at that point had another family.
Her parents should have been given guardianship. Starving someone to death while her family is grieving is inhuman. There was never any proof that this is what she wanted, only the words of a "husband" who was living with and having children with another woman.