China’s cautious war stance preserved leverage, with Trump crediting Beijing for bringing Iran to Pakistan talks