A landmark Iran nuclear agreement was reached Tuesday after clearing final obstacles, and a senior diplomat said it included a compromise between Washington and Tehran that would allow U.N. inspectors to press for visits to Iranian military sites as part of their monitoring duties.