China’s economy grew 4.9% in the third quarter from a year earlier, slowing sharply from the previous quarter’s 7.9% growth rate, as power shortages and supply-chain problems added to the impact from Beijing’s efforts to rein in the real estate and technology sectors.