The rhetoric belies a more complicated reality, as Beijing has been one of Tehran’s biggest backers.