The imposition of US tariffs comes at a difficult time for Beijing, with the government grappling with a number of economic woes.