Several US states have sued the company, alleging that ChatGPT is harming the public.