The president left Beijing without a promise from China to pressure Iran to reopen the Strait of Hormuz.