basis of such railcar shall be reduced by the amount of the credit so allowed. (4) Sale-leaseback For purposes of subsection (a)(1), if any qualified freight railcar is— (A) originally placed in service by a person after the date of the enactment of this section, and (B) sold and leased back by such person within 3 months after the railcars are originally placed in service (or, in the case of more than one railcar subject to the same lease, within 3 months after the date the final railcar is placed in service, so long as the period between the time the first railcar is placed in service and the time the last railcar is placed in service does not exceed 24 months), such railcar shall be treated as originally placed in service not earlier than the date on which such railcar is used under the leaseback referred to in this paragraph. (5) Syndication For purposes of subsection (a)(1), if— (A) any qualified freight railcar is originally placed in service after the date of enactment of this section by the lessor of such railcar, (B) such railcar is sold by such lessor or any subsequent purchaser within 3 months after the date such railcar was originally placed in service (or, in the case of more than one railcar subject to the same lease, within 3 months after the date the final railcar is placed in service and the time the last railcar is placed in service does not exceed 12 months), and (C) the user of such railcar after the last sale during such 3-month period remains the same as when such railcar was originally placed in service, such railcars shall be treated as originally placed in service not earlier than the date of such last sale. (6) Entities owned or controlled by state-owned enterprises ineligible No credit under subsection (a) shall be allowed to any taxpayer that would be ineligible for an award of a contract or subcontract under 49 U.S.C. 5323(u) . (d) Termination This section shall not apply to any qualifying railcar facility equipment and technology modernization amount after December 31, 2023, or to