The article says that these antibiotics are given as single does months apart for a few years. Any resistance that develops quickly reverts. Livestock on the other hand, get much more regular antibiotics.
All that aside, these antibiotic regimes have been carefully designed by people who have already thought very hard about these problems. The single-dose model is designed to produce a significant response with a non-durable mutative result in the population. There's an awful lot of literature about the design process for third-world medication (see e.g. tuberculosis treatment) if you're curious.