New York State failed to provide legally required mental health care to children, court claims