China's economy has hit the government's 5% growth target for 2024 in the face of multiple challenges.