; 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. 2204. Sarah and Grant’s law (a) Detention of aliens during removal proceedings (1) Clerical amendments (A) Section 236 of the Immigration and Nationality Act ( 8 U.S.C. 1226 ) is amended by striking Attorney General each place it appears (except in the second place that term appears in section 236(a)) and inserting Secretary of Homeland Security . (B) Section 236(a) of such Act ( 8 U.S.C. 1226(a) ) is amended by inserting the Secretary of Homeland Security or before the Attorney General— . (C) Section 236(e) of such Act ( 8 U.S.C. 1226(e) ) is amended by striking Attorney General’s and inserting Secretary of Homeland Security’s . (2) Length of detention Section 236 of such Act ( 8 U.S.C. 1226 ) is amended by adding at the end the following: (f) Length of detention (1) In general Notwithstanding any other provision of this section, an alien may be detained, and for an alien described in subsection (c) shall be detained, under this section without time limitation, except as provided in subsection (h), during the pendency of removal