Iraqi troops rout ISIL fighters in key battle