The two leaders spoke by phone on Thursday, after weeks of worsening tensions between Washington and Beijing.