; (2) by inserting before clause (ii), as so redesignated, the following: (i) Children aging out of foster care In making tenant-based assistance under this subsection available on behalf of eligible families, each public housing agency shall give preference to otherwise eligible children who are in foster care, have attained an age such that the provision of foster care for the child will end by reason of the age of the child within 6 months, meet the requirements under clauses (i) and (ii) of paragraph (1) of the definition of the term at risk of homelessness in section 91.5 of title 24, Code of Federal Regulations, as in effect on September 1, 2016, and have agreed to comply with the requirements under section 38(c). ; (3) in clause (ii), as so redesignated, by inserting that is not made available in accordance with the preference under clause (i) after under this subsection ; and (4) in clause (iii), as so redesignated, by striking this subparagraph and inserting clause (ii) . (d) PHA project-Based voucher assistance Section 8(o)(13)(J) of the United States Housing Act of 1937 ( 42 U.S.C. 1437f(o)(13)(J) ) is amended— (1) in the first sentence, by inserting before the period at the end the following: , except that the agency shall give preference to otherwise eligible children who are in foster care, have attained an age such that the provision of foster care for the child will end by reason of the age of the child within 6 months, meet the requirements under clauses (i) and (ii) of paragraph (1) of the definition of the term at risk of homelessness in section 91.5 of title 24, Code of Federal Regulations, as in effect on September 1, 2016, and have agreed to comply with the requirements under section 38(c)