Trump’s shift on a massive deal is the latest example of his confounding trade policy