UnitedHealth Group Inc (UNH.N), the largest U.S. health insurer, has settled federal and New York state charges it illegally denied coverage to thousands of patients suffering from mental health problems and substance abuse.