Judge backs patient in 'right to live' case