; and (B) by inserting after subsection (g) the following: (h) Sunset Beginning on the date of enactment of the Teacher Loan Repayment Act of 2017 , the Secretary shall not enter into a new agreement to forgive a qualified loan amount under this section. ; and (4) in section 460, by adding at the end the following: (i) Sunset Beginning on the date of enactment of the Teacher Loan Repayment Act of 2017 , the Secretary shall not enter into a new agreement to cancel the obligation to repay a qualified loan amount under this section. . (b) Loan repayment for teachers Title IV of the Higher Education Act of 1965 ( 20 U.S.C. 1070 et seq.) is amended by adding at the end the following: J Loan repayment for teachers 499A. Loan repayment for teachers (a) Purpose The purpose of this section is to encourage highly qualified individuals to enter and continue in the teaching profession, and to ensure qualified effective teachers are encouraged to work in high-need schools. (b) Definitions In this section: (1) Child with a disability The term child with a disability has the meaning given the term in section 602 of the Individuals with Disabilities Education Act. (2) Student loan The term student loan means a loan— (A) made, insured, or guaranteed under part B, except as provided in subparagraph (C); (B) made under part D or E, except as provided in subparagraph (C); or (C) made under section 428C or 455(g), to the extent that such loan was used to repay a Federal Direct Stafford Loan, a Federal Direct Unsubsidized Stafford Loan, or a loan made under section 428 or 428H. (c) Program authorized The Secretary shall carry out a program under which the Department of Education shall assume the obligation to repay a student loan, by direct payments on behalf of a borrower to the holder of such loan, in accordance with subsection (e), for any borrower who— (1) is not in default on a loan for which the borrower seeks forgiveness