; and (ii) entered the United States with the alien’s child who has not attained 18 years of age; and (B) detain the alien with the alien’s child. . (b) Effective date The amendment made by subsection (a) shall take effect on the date of the enactment of this Act and shall apply to all actions that occur before, on, or after the date of the enactment of this Act. (c) Preemption of State licensing requirements Notwithstanding any other provision of law, judicial determination, consent decree, or settlement agreement, no State may require that an immigration detention facility used to detain children who have not attained 18 years of age, or families consisting of one or more of such children and the parents or legal guardians of such children, that is located in that State, be licensed by the State or any political subdivision thereof. 3103. Detention of dangerous aliens Section 241(a) of the Immigration and Nationality Act ( 8 U.S.C. 1231(a) ) is amended— (1) by striking Attorney General each place it appears, except for the first reference in paragraph (4)(B)(i), and inserting Secretary of Homeland Security ; (2) in paragraph (1), by amending subparagraph (B) to read as follows: (B) Beginning of period The removal period begins on the latest of the following: (i) The date the order of removal becomes administratively final. (ii) If the alien is not in the custody of the Secretary on the date the order of removal becomes administratively final, the date the alien is taken into such custody. (iii) If the alien is detained or confined (except under an immigration process) on the date the order of removal becomes administratively final, the date the alien is taken into the custody of the Secretary, after the alien is released from such detention or confinement.