Annual growth of 2.3% puts China on course to be the only major economy to have expanded in 2020.