It shall be the duty of the attorney general to represent and appear for the people of the state of Washington and the commission in all actions and proceedings involving any question under this title, or under or in reference to any act or order of the commission; and it shall be the duty of the attorney general generally to see that all laws affecting any of the persons or corporations herein enumerated are complied with, and that all laws, the enforcement of which devolves upon the commission, are enforced, and to that end he or she is authorized to institute, prosecute, and defend all necessary actions and proceedings.