1. Short title This Act may be cited as the Protection of Children Act of 2017 . 2. Repatriation of unaccompanied alien children (a) In general Section 235 of the William Wilberforce Trafficking Victims Protection Reauthorization Act of 2008 ( 8 U.S.C. 1232 ) is amended— (1) in subsection (a)— (A) in paragraph (2)— (i) by amending the heading to read as follows: Rules for unaccompanied alien children. ; (ii) in subparagraph (A); (I) in the matter preceding clause (i), by striking who is a national or habitual resident of a country that is contiguous with the United States ; (II) in clause (i), by inserting and at the end; (III) in clause (ii), by striking ; and and inserting a period; and (IV) by striking clause (iii); (iii) in subparagraph (B)— (I) in the matter preceding clause (i), by striking ( 8 U.S.C. 1101 et seq.) may— and inserting ( 8 U.S.C. 1101 et seq.)— ; (II) in clause (i), by inserting before permit such child to withdraw the following: may ; and (III) in clause (ii), by inserting before return such child the following: shall ; and (iv) in subparagraph (C)— (I) by amending the heading to read as follows: Agreements with foreign countries . ; and (II) in the matter preceding clause (i), by striking The Secretary of State shall negotiate agreements between the United States and countries contiguous to the United States and inserting The Secretary of State may negotiate agreements between the United States and any foreign country that the Secretary determines appropriate ; and (B) in paragraph (5)(D)— (i) in the matter preceding clause (i), by striking , except for an unaccompanied alien child from a contiguous country subject to the exceptions under subsection (a)(2), and inserting who does not meet the criteria listed in paragraph (2)(A) ; and (ii) in clause (i), by inserting before the semicolon at the end the following: , which shall include a hearing before an immigration judge not later than 14 days after being screened under paragraph (4)