A drug used to treat asthma could prevent thousands of life-threatening allergic reactions, allowing a third of children with allergies to safely eat triggering foods.