Iraq, Bahrain back on track for semi-finals