The state is appealing a superior court order that voided an agreement the attorney general's office had with a private law firm to assist in investigating pharmaceutical companies for alleged deceptive marketing practices of opioids for pain treatment.