BEIJING—China’s leaders are struggling to reverse an economic slump without giving up anti-virus tactics that shut down Shanghai and other cities, adding to challenges for President Xi Jinping as he tries to extend his time in power. The ruling Communist Party has declared its “zero-Covid” goal of preventing all infections…