China and the US have signaled a long-running trade spat between the world's two largest economies may be easing as they prepare for talks at the end of the month.