Courts have said that the attorney general can use a 100-year-old law to demand entities’ internal records and sue to shut them down if he believes they’re violating the law.