; (B) enforce compliance with this Act or the regulation; (C) obtain damages, civil penalties, restitution, or other compensation on behalf of the residents of the State; or (D) obtain such other relief as the court may consider to be appropriate. (2) Rights of the commission (A) In general Except where not feasible, the attorney general of a State shall notify the Commission in writing prior to initiating a civil action under paragraph (1). Such notice shall include a copy of the complaint to be filed to initiate such action. Upon receiving such notice, the Commission may intervene in such action and, upon intervening— (i) be heard on all matters arising in such action