; and (2) by adding at the end the following: (B) Enforcement by attorney general of a State The attorney general of a State, or other authorized State officer, alleging a violation of the detention requirement under subparagraph (A) that harms such State or its residents shall have standing to bring an action against the Secretary of Homeland Security on behalf of such State or the residents of such State in an appropriate district court of the United States to obtain appropriate injunctive relief. The court shall advance on the docket and expedite the disposition of a civil action filed under this subparagraph to the greatest extent practicable. For purposes of this subparagraph, a State or its residents shall be considered to have been harmed if the State or its residents experience harm, including financial harm in excess of $100. . (f) Limit on injunctive relief Section 242(f) of the Immigration and Nationality Act ( 8 U.S.C. 1252(f) ) is amended by adding at the end following: (3) Certain actions Paragraph (1) shall not apply to an action brought pursuant to section 235(b)(3), subsections (e) or (f) of section 236, or section 241(a)(2)(B). .