It worked as intended. Iran is set back but nowhere near the amount required. They are FAR to along now and attacking them has galvanized their determination to finish what they have started. Now the ONLY play to stop them is invasion and there is no way America can do this ALONE.
Overall, Israel's and U.S. attacks have effectively destroyed Iran’s centrifuge enrichment program. It will be a long time before Iran comes anywhere near the capability it had before the attack. That being said, there are residuals such as stocks of 60 percent, 20 percent, and 3-5 percent enriched uranium and the centrifuges manufactured but not yet installed at Natanz or Fordow. These non-destroyed parts pose a threat as they can be used in the future to produce weapon-grade uranium.