Licensing agreements between the two companies date back to 2011. They’re now at the center of a high-stakes legal battle.