Canada’s aim of becoming a global leader in electric vehicle parts production has proven unexpectedly difficult as progress on factories near Toronto and Montreal has stalled, leaving the projects' futures in doubt during a trade dispute with the United States, the primary market for Canada’s auto industry.