Here is the wording of the bill, looks like you can claim either in 2022 or 2023 as long as your AGI is less than the threshold.
(10) Limitation based on modified adjusted gross income.—“(A) In general.—No credit shall be allowed under subsection (a) for any taxable year if—“
(i) the lesser of—“(I) the modified adjusted gross income of the taxpayer for such taxable year, or“(II) the modified adjusted gross income of the taxpayer for the preceding taxable year, exceeds“(ii) the threshold amount.“(B) Threshold amount.—For purposes of subparagraph (A)(ii), the threshold amount shall be—“(i) in the case of a joint return or a surviving spouse (as defined in section 2(a)), $300,000,“(ii) in the case of a head of household (as defined in section 2(b)), $225,000, and“(iii) in the case of a taxpayer not described in clause (i) or (ii), $150,000.