Canadian port foremen agree to new contract