The tax credits were eventually reapplied to Tesla with the changes starting in 2023, but for a while, Tesla had crossed the sales limit so that the credit wasn't available.
The phaseout based on units sold was in place as far back as 2018 since Tesla reached it in July 2018 and GM in November 2018. The Inflation Reduction Act of 2022 (effective August 2022, not 2023) reinstated Tesla's eligibility and disqualified a number of other EVs.
Although the Inflation Reduction Act became effective in August 2022, no EV tax credit was available for new Tesla or GM EVs purchased in 2022, regardless of month. The units-sold threshold phaseout was only lifted for purchases made after 2022.
And Tesla?
https://www.tesla.com/IRA