Iraq’s leader arrived in Mosul to declare victory over the Islamic State in the more than eight-month old operation.