A business group says foreign companies are shifting investment and their Asian headquarters out of China as confidence plunges following the expansion of an anti-spying law and other challenges. The report by the European Union Chamber of Commerce in China is one of many signs of growing pessimism despite the ruling Communist Party’s efforts to revive interest in the world’s No. 2 economy. Companies are uneasy about the anti-spying law, government protection of Chinese rivals and lack of action on reform promises. They also are being squeezed by slowing Chinese economic growth, despite the country’s exit from its “zero-COVID” policies, and by rising costs.