The discovery could lead to a new treatment for millions of people with obesity and type 2 diabetes who do not respond well to current treatments.