Those aren't really equivalent. Iran is affecting the supply of oil, an input. China can affect the supply of solar panels, but they would have to do something pretty drastic to affect the supply of the input. Sunlight is going to keep reaching the solar panels that were set up prior to any kind of embargo.

Those panels have a limited lifetime

Well in the next 30 years we will have to find a replacement.

After which they can be recycled.