President-elect Donald Trump said the levies were necessary to clamp down on migrants and illegal drugs flowing across US borders.