Scientists have developed a new drug that could help fight antibiotic-resistant bacteria, a major threat to public health.