Just like so much of what Trump has been involved in, the Trump Foundation was in large part a scam. He made a lot of noise about how he wouldn't "settle this case," but mysteriously, he did exactly that. "Judge fines Trump $2 million for misusing charity foundation" | AP
I don't have a defense for this. It is disappointing the Trump misused this foundation law. But, those who wish to throw stones should realize that they are inside a glass house built by the Clinton foundation.
The FBI has been investigating the Clinton Foundation on and off since 2015. You'd think that they would have found something criminal by now, if it were there to find. On the other hand the foundation did accept donations from questionable sources, including during the time that Clinton was Secretary of State, so there's that.