Trump signaled that diplomacy wasn't going to solve the tension, and they weren't getting what they wanted to in exchange for not building weapons. Of course they were going to build them. Why would they not, whether for offense or defense?
You can always stop building nuclear weapons at any time and change course. But they chose not to, and suffered the consequences. Whose fault is that?