General Motors and the South Korean automaker say they will collaborate on new vehicles, buying parts and clean energy technologies.