and Family Services 301. Supporting and retaining foster families for children (a) Supporting and retaining foster parents as a family support service Section 431(a)(2)(B) of the Social Security Act ( 42 U.S.C. 631(a)(2)(B) ) is amended by redesignating clauses (iii) through (vi) as clauses (iv) through (vii), respectively, and inserting after clause (ii) the following: (iii) To support and retain foster families so they can provide quality family-based settings for children in foster care. . (b) Support for foster family homes Section 436 of such Act ( 42 U.S.C. 629f ) is amended by adding at the end the following: (c) Support for foster family homes Out of any money in the Treasury of the United States not otherwise appropriated, there are appropriated to the Secretary for fiscal year 2018, $8,000,000 for the Secretary to make competitive grants to States, Indian tribes, or tribal consortia to support the recruitment and retention of high-quality foster families to increase their capacity to place more children in family settings, focused on States, Indian tribes, or tribal consortia with the highest percentage of children in non-family settings. The amount appropriated under this subparagraph shall remain available through fiscal year 2022. . 302. Extension of child and family services programs (a) Extension of Stephanie Tubbs Jones child welfare services program Section 425 of the Social Security Act ( 42 U.S.C. 625 ) is amended by striking 2012 through 2016 and inserting 2017 through 2021 . (b) Extension of promoting safe and stable families program authorizations (1) In general Section 436(a) of such Act ( 42 U.S.C. 629f(a) ) is amended by striking all that follows $345,000,000 and inserting for each of fiscal years 2017 through 2021. . (2) Discretionary grants Section 437(a) of such Act ( 42 U.S.C. 629g(a) ) is amended by striking 2012 through 2016 and inserting 2017 through 2021 . (c) Extension of funding reservations for monthly caseworker visits and regional partnership grants Section 436(b) of such