A semiconductor shortage is hitting everyone from technology giants to automakers. The boss of Germany’s biggest chip firm, Infineon Technologies AG, expects the episode to last until 2023. That means earnings growth for several industries is at risk for many quarters to come.