A vote in favour of a new labour contract at a parts factory in Canada avoided a strike that could have hit Chrysler minivan output.