Effective date— The amendment made by this section shall apply to taxable years of foreign corporations beginning after December 31, 2023, and to taxable years of United States shareholders with or within which such taxable years of foreign corporations end.