New York Attorney General Letitia James has battled big tech, opioid manufacturers and the National Rifle Association.