Under Saddam Hussein , Iraq fought a devastating eight-year war with Iran , and more than a million people were killed .