Giving mums in labour antibiotics could avoid serious harm to newborn babies.