The licensing deal marks a diversification of Roche’s obesity pipeline as it seeks entry into the lucrative market.