President Donald Trump has racked up a number of wins on getting other countries to cooperate with his border security efforts, using both diplomacy and tariff threats.