Court rules to maintain care for vulnerable brain damaged woman