The pharmaceutical company’s success developing medicines for obesity has swelled its worth to levels associated with tech titans like Apple and Google and dwarfed that of its drugmaking peers.