Negotiations aimed at cooling tensions between the United States and China have ended in a “deal”, according to President Donald Trump, as China agreed to supply US companies with magnets and rare earth metals, while the US would walk back its threats to revoke visas of Chinese students.