; and (B) by inserting after subsection (c) the following: (d) Detention of accompanied minors (1) In general Notwithstanding any other provision of law— (A) judicial determination, consent decree, or settlement agreement, the detention of any alien minor who is not described in section 462(g)(2) of the Homeland Security Act of 2002 ( 6 U.S.C. 279(g)(2) ) shall be governed by sections 217, 235, 236, and 241 of the Immigration and Nationality Act ( 8 U.S.C. 1187 , 1225, 1226, and 1231)