The U.S. and other world powers have finally reached a deal with Iran that will significantly limit its nuclear program.