U.S. officials are cautiously optimistic that they are close to a deal with Iran to freeze its nuclear program as a first step toward a comprehensive agreement that would allow a limited Iranian civilian nuclear program, including some enrichment of uranium for civilian uses.