Beijing and Tehran seize on U.S. Democrats’ neuroses about an ally.