As for the U.S. military, this is certainly going to cause the U.S. military some inconvenience, but not any serious long-term harm. What will happen as a result of this is that federal law enforcement will now start going after Anonymous in a way that they have not previously done: federal felonies have been committed, and further such crimes are highly likely. Serious resources are going to be devoted to tracking down the responsible parties. Anonymous have developed a false sense of security because nobody has yet gone after them with the full resources of the federal government, and because their interactions have largely been limited to exceptionally inept contractors. While there are plenty of incompetents working for the government, there are also lots of people who are very talented and capable, and Anonymous is now going to find themselves dealing with the latter category.
In summary, they have not done any lasting damage to the government, but they have turned themselves into priority targets. I don't see the upside for them.