It's the U.S. government who committed war crimes here and used secrecy to conceal their crimes. Of course it's the U.S. government's fault. The option to not commit war crimes and use the secrets act to conceal it was there. They didn't take it.
The U.S. Government proved it will use 'top secret' to hide not only information that is actually top secret but also information that is embarrassing. This would be a pretty clear motivator for the Pentagon not to respond and for WikiLeaks to go ahead with the publication.
> Wikileaks could have published that information without publishing anyone's name.
No. Names as such are vital. It lets you know WHO needs to be held accountable. Most leaks are published with names in them. There are names that the U.S. government could have suggested (not demand) to be redacted and WikiLeaks could have agreed to either some or all of the requests. They refused to cooperate. It's pretty clearly on them.
I also love how the people exposing war crimes are getting more heat that the actual war criminals who never spent a day behind bars. Speaks volumes.