Sloan's mind held a file on the former president, Bashir interpreted that as meaning a S31 spy.
Would a S31 spy in the cabinet be to only way to assemble a file on a public figure?
It absolutely would if Section 31 was an illegal organization that had no official standing to keep files on anyone ever.
Quite the contrary, I'm pretty sure that the Secret Service (and its international counterparts) have files on virtually senior figure in thier respective goverments and the FBI and Diplomatic Security Service probably duplicate at least a good chunk of them.
Which is because the Secret Service, the FBI and the DSS are all
supposed to do those things because part of their job is to keep those political figures safe and monitor them and the people around them for security breaches.
Section 31 having those files is the equivalent of the Fraternal Order of Police keeping a list of Rahm Emanuel's phone records. It's well beyond "dubious legal ground" at that point.
The "resistance" stems from how the public has come to view the military during the late 20th and 21st century, particularly in the United States.
Actually, I think the United States is one of the very few holdouts in this regard. Internationally, the narrative on the importance of having a strong military for national defense has been strongly eroded by the fact that MOST industrialized countries haven't been involved in a major war -- or even, really, a SMALL one -- since 1945. So in many countries there's this idea that "the military" is just another one of many government services and not particularly unique in its own right beyond what one might expect for police officers, fire fighters, coastal rescue, etc.
Most countries that still have a strong thread of militarism near the surface of society are also prone to some weird internal military conflicts (e.g. military coups and the occasional mutiny). From what I can tell, this is mainly because militaristic cultures are USUALLY older than the governments that run them, so there's a cognitive disconnect between militarism and patriotism. Turkey is a really good example of this: There are militaristic (pro-military) factions, and there are also patriotic (pro-government) factions, and their government is considered to be exactly as stable as the common ground between them. Laos, Indonesia, Thailand and a few others are also similar to this.
Israel and the United States, being relatively new countries, have this long flirtation between militarism and patriotism, mainly because both have governments that are slightly older than their militaries. Citizens in both countries have a tendency to assume the collapse of their existing government is basically the end of their entire way of life and the military is the one main thing that will prevent that from happening (where as the lessons of history suggest it is more likely to be the CAUSE than the cure, but whatever).
This is why we have people in America who say dumb shit like "Where would you be right now if those soldiers hadn't gone out there and fought for your freedom?"
after that conflict, the military's "negative" aspects have infected the cultural mindset of the American people, even though many reforms have been made to make the military more accountable. Thus, many fans, IMO, feel that "Starfleet" being "military" is the antithesis of the Utopian message of STAR TREK, based on the reputation of military of the 20th and 21st century, never mind the fact that people forget that the military is answerable to the civilians in government, and it is they who set the mission parameters of today's armed services. Go figure.
It sounds like you're projecting (seeing how you put the word "negative" in quotes as if there are no actual negative aspects of the military). A quick glance around science fiction as a genre reveals that the consuming public has no problems whatsoever with a military organization as a protagonist, or even as an explorer. The Stargate franchise, for example, has greater longevity and a wider following than Star Trek ever did, despite being being horribly written and terribly acted. Battlestar Galactica has the same appeal, as do various other film franchises. In literary fiction, the infatuation with the military is so pronounced that
it's actually become its own sub-genre.
You would have a point, in other words, if Star Trek was the biggest and most important sci-fi franchise in the business. But it isn't, not by a longshot. So the resistance to the idea of Starfleet as a military organization is something
unique to Star Trek, not to American culture (which, as I pointed out above, actually reveres and glorifies the military to the point of irrationality).
So what is it about Starfleet that makes people think they're not a military organization? Well:
- Lack of tactical functionality in their uniforms
- Lack of obvious combat proficiency
- Lack of obvious combat readiness
- Extremely lax martial discipline
- Extreme focus on luxury and comfort for their crews
- Children on the Enterprise
- Research Scientists as commissioned officers
- Senior officers putting their lives at risk to try and avoid a fight with a clearly hostile aggressor
- Starfleet officers on multiple occasions describing themselves as "explorers" and saying their mission is "peaceful."
- Starfleet officers on multiple occasions explicitly saying "Starfleet is not a military organization."
It's not like there's some sort of cultural anti-military bias in science fiction.
That is clearly FAR from true.
Personally, I do wonder how STAR TREK would turn out if the Federation did not have a "Starfleet", and that a 'Trek show simply features a team of explorers in uncharted territory, kind of like a cross between LOST IN SPACE and FARSCAPE meets STAR WARS cross between GUARDIANS OF THE GALAXY, minus the comic book nonsense. You know, like the ALIEN franchise without the horror.
That's kind of inevitable, if you think about it. The privatization of space exploration (SpaceX et al) is already becoming a thing, and eventually Star Trek will have to jump on the bandwagon in order to remain relevant. Look for a version of Trek some time in the next 20 years or so that depicts Starfleet as a private corporation chartered by the UESPA for energy exploration purposes and/or colonization support.
Or, if you don't want to wait that long, look up the "Andromeda Initiative" and see the complex interplay there. I keep thinking of Kaitus' "APEX" militia and realizing that the definition of "military" becomes kind of fuzzy when you don't technically have a government to answer to.