; or (B) any other grant administered by the Department of Justice that is substantially related to law enforcement (including enforcement of the immigration laws), immigration, or naturalization or grant administered by the Department of Homeland Security that is substantially related to immigration, enforcement of the immigration laws, or naturalization. (2) Exception A political subdivision described in subsection (c)(3) that declines to honor a detainer issued pursuant to section 287(d)(1) of the Immigration and Nationality Act ( 8 U.S.C. 1357(d)(1) ) as a consequence of being required to comply with a statute or other legal requirement of a State or another political subdivision with jurisdiction over that political subdivision, shall remain eligible to receive grant funds described in paragraph (1). In the case described in the previous sentence, the State or political subdivision that enacted the statute or other legal requirement shall not be eligible to receive such funds.