Pesticide ban in two French towns judged valid