US president says measures will go ahead despite efforts by Mexican and Canadian officials to find a way around.