The development of onion routing funded by the NRL had a bunch of use cases including the one I mentioned. By the time Tor (The Onion Router) launched, and definitely by the time the Tor Project came along, more general use cases and human rights were a significant part of it.
I did have the chance to attend a talk by one of the cofounders and have a conversation with him afterwards. This was at a math conference a little over a decade ago.