Astrazeneca plc will pay up to $2 billion for Eccogene Co. Ltd.’s oral weight loss candidate, ECC-5004, as big and small pharma players alike work to gain ground in the burgeoning obesity market where Eli Lilly and Co. scored the latest U.S. FDA approval of Zepbound (tirzepatide).