Factories in China’s southwest have shut down and a city imposed rolling blackouts after reservoirs to generate hydropower ran low amid a worsening drought, adding to economic strains at a time when President Xi Jinping is trying to extend his hold on power.