The licensing pact adds a second so-called "triple agonist" to the Danish drugmaker's portfolio as competition with Lilly and other contenders heats up.