I think the right thing was done. The baby was saved, by keeping the woman alive.

Normal braindead people, however, should not be kept alive. If you talk about the family wanting to keep them on life support forever, the doctors might as well replace them with a doll.