But if the unpopularity of a US policy and president helps get a politician elected who is more hostile to the United States, it can complicate our foreign policy.
Obrador in Mexico. Gerhard Schröder was elected because of the war in Iraq. To some degree, Putin in Russia.
They still have national interests, and won't make decisions only based on anti-Americanism. But it complicates matters.