of this Act or any regulation prescribed under this Act that affects or may affect the State or the residents of the State may bring an action on behalf of the residents of the State in any United States district court for the district in which the defendant is found, resides, or transacts business, or wherever venue is proper under section 1391 of title 28, United States Code, to obtain appropriate injunctive relief. (2) Notice to Commission required A State shall provide prior written notice to the Federal Trade Commission of any civil action brought under paragraph (1) with a copy of the complaint for the civil action, except that if providing such prior notice is not feasible for the State, the State shall provide notice immediately upon instituting the civil action. (3) Intervention by the Commission The Federal Trade Commission may intervene in a civil action brought under paragraph (1) and upon intervening— (A) may be heard on all matters arising in the civil action