Trump had been threatening the tariffs to ensure greater cooperation from the countries on stopping illegal immigration and the smuggling of chemicals used for fentanyl.