Deal reached on unity government in Iraq