Deal reached on U.N. sanctions vs. Iran