Both Canada and Mexico have agreed to strengthen border security with the United States in return for a 30-day pause in tariffs.