; (C) a supplemental grant under section 205(b) of such Act ( 42 U.S.C. 3145(b) ); (D) a grant for training, research, and technical assistance under section 207(a) of such Act ( 42 U.S.C. 3147(a) ); and (E) except as provided in paragraph (3), a community development block grant made pursuant to title I of the Housing and Community Development Act of 1974 ( 42 U.S.C. 5301 et seq. ). (3) Exception Grants described in paragraph (2)(E) shall not include any disaster relief grants to address the damage in an area for which the President has declared a disaster under title IV of the Robert T. Stafford Disaster Relief and Emergency Assistance Act ( 42 U.S.C. 5170 et seq. ). 4. Ensuring cooperation between Federal and local law enforcement officers to safeguard our communities (a) Authority To cooperate with Federal officials A State, a political subdivision of a State, or an officer, employee, or agent of such State or political subdivision that complies with a detainer issued by the Department of Homeland Security pursuant to section 236 or 287 of the Immigration and Nationality Act (8 U.S.C. 1226 and 1357)— (1) shall be deemed to be acting as an agent of the Department of Homeland Security; and (2) shall comply with section 287(d) of the Immigration and Nationality Act ( 8 U.S.C. 1357(d) ) and section 287.5(d) of title 8, Code of Federal Regulations. (b) Legal proceedings In any legal proceeding brought against a State, a political subdivision of State, or an officer, employee, or agent of such State or political subdivision challenging the legality of the seizure or detention of an individual pursuant to a detainer issued by the Department of Homeland Security under section 236 or 287 of the Immigration and Nationality Act (8 U.S.C. 1226 and 1357)— (1) the State or political subdivision of a State shall not be liable for any action taken in accordance with the detainer