President Obama sent a letter to Iran's Supreme Leader last month expressing the two countries' shared interest in beating ISIS, according to two sources briefed on the correspondence.