; (C) by striking was under a disability and inserting is under a disability ; (D) by striking living at the time and all that follows through , or (B) and inserting , (B) ; and (E) by inserting , or (C) a court of competent jurisdiction has issued an order granting custody of such person to the individual or the individual’s spouse before the first period. (b) Conforming amendments Section 202(d)(1) of the Social Security Act ( 42 U.S.C. 402(d)(1) ) is amended— (1) by striking subparagraphs (A), (B), and (C) and inserting subparagraphs (A) and (B) and subparagraph (C) or paragraph (9) (as applicable) ; and (2) by striking subparagraphs (B) and (C) and inserting subparagraph (B) and subparagraph (C) or paragraph (9) (as applicable) . (c) Effective date The amendments made by this section shall apply with respect to monthly insurance benefits payable for months in calendar years 2025 through 2034, including for individuals who file applications for such benefits to begin with any such month, except that such amendments shall not apply for purposes of determining continuing eligibility for monthly insurance benefits for any month after calendar year 2034. 113. Preventing an unintended drop in benefits relating to the application of the National Average Wage Index (a) Modifications related to computation of primary insurance amount Section 215 of the Social Security Act ( 42 U.S.C. 415 ) is amended— (1) in subsection (a)(1)(B)(ii)— (A) in subclause (I)— (i) by striking the national and inserting (aa) the national ; and (ii) by striking , by at the end and inserting ; or ; and (B) by adding at the end of subclause (I) the following: (bb) if higher (and if such second calendar year is after 2024), the highest national average wage index (as so defined) for any calendar year before such second calendar year, by ; and (2) in subsection (b)(3)(A)(ii)— (A) in subclause (I)— (i) by striking the national and inserting (aa) the national ; and (ii) by striking , by at the end and inserting ; or