A big chunk of the clean-energy industry’s woes are macroeconomic. Some of the worst-hit companies started big, expensive projects before pandemic supply-chain bottlenecks helped send the cost of materials such as steel soaring, and interest-rate increases made financing more expensive. In the U.S., dozens of renewable-power developers have increased prices they are charging for electricity and rewritten contracts to try to recoup costs.