Easing tensions with Washington gives Beijing room to tackle economic troubles at home while reducing its vulnerability to American pressure.