President Trump granted Mexico and Canada a 30-day reprieve on U.S. tariffs after both nations agreed to intensify efforts to block illicit drugs and migrants.