Apple has until 2024 to conform, but by that time it’s likely the iPhone will be portless. Interesting is that the older iPhones they sell which at that time would be something like iPhone 13/14 will also need to have USB-C.
Seems exceedingly unlikely unless the law changes by then.