Over more than a decade, Iran had moved ahead with its nuclear program. And before the deal, it had installed nearly 20,000 centrifuges that could enrich uranium for a nuclear bomb.