GM’s V-6 engine is just one example of how the Detroit 3 automakers have used the 25-year-old North American Free Trade Agreement to shift work to lower-cost facilities across the continent, cutting expenses and boosting returns from the region that represents the bulk of their global profits.