The world’s second-largest economy has remained under pressure from a real estate slump and tepid consumer confidence.