A research team has developed a device that can lodge in the stomach and deliver antibiotics to treat tuberculosis, which they hope will make it easier to cure more patients and reduce health care costs.