No one in the US government was claiming that Iran had nuclear weapons. The stated reason is that they were close to having nuclear weapons based on the current rate of uranium enrichment, anywhere from a few weeks to a few months. Of course we may never know whether that's really true.
> The stated reason is that they were close to having nuclear weapons
No the US was claiming: "We continue to assess Iran is not building a nuclear weapon and that Khamenei has not reauthorized the nuclear weapons program he suspended in 2003, though pressure has probably built on him to do so." in it's 2025 Threat Assessment. The reports believes they were not working on them and Khamenei has the final authority to restart the program which he had not done. However, they believe there was growing pressured to do so.
Trump just gave the guy reason to green light a weapons project he had so far not wanted.