; and (2) except as provided by the Secretary of the Treasury, such retirement plan shall not fail to meet the requirements of section 411(d)(6) of the Internal Revenue Code of 1986 and section 204(g) of the Employee Retirement Income Security Act of 1974 by reason of such amendment. (b) Amendments to which section applies (1) In general This section shall apply to any amendment to any retirement plan or annuity contract which is made— (A) pursuant to any amendment made by this Act or pursuant to any regulation issued by the Secretary of the Treasury or the Secretary of Labor under this Act; and (B) on or before the last day of the first plan year beginning on or after January 1, 2021. In the case of a governmental plan (as defined in section 414(d) of the Internal Revenue Code of 1986), this paragraph shall be applied by substituting 2023 for 2021 . (2) Conditions This section shall not apply to any amendment unless— (A) during the period— (i) beginning on the date the legislative or regulatory amendment described in paragraph (1)(A) takes effect (or in the case of a plan or contract amendment not required by such legislative or regulatory amendment, the effective date specified by the plan); and (ii) ending on the date described in paragraph (1)(B) (as modified by the second sentence of paragraph (1)) (or, if earlier, the date the plan or contract amendment is adopted), the plan or contract is operated as if such plan or contract amendment were in effect; and (B) such plan or contract amendment applies retroactively for such period.