State rebuked in 79-page ruling for ‘systemic institutionalization’ of medically fragile children