His brain injury caused 'severe' cognitive impairments, judge finds.