The two companies will reach an agreement by the end of the quarter as they find new ways to collaborate on electric vehicles.