Iraq says it has reached a deal to share intelligence with Russia, Iran and Syria in the fight against ISIS militants.