If you look at U.S. foreign policy (covert and overt, CIA, military) over history, one consistent goal is to install regimes that are friendly to the U.S. and to topple regimes which are not. Defeating the military of the hostile regime can be part of that. But if that were it, then the U.S. would just leave once that had been accomplished, and that's not what happens.
The U.S. generally sticks around and tries to install a replacement, often undemocratically. On the occasion that they do implement democratic elections, any winner that is not sufficiently friendly to U.S. interests is undermined or even couped and a (usually right-wing) government is installed undemocratically.
Occasionally the U.S. will even undermine the democratic government of a country it hasn't even officially militarily engaged with, because the leader is threatening U.S. business interests. The history of U.S. relations with Latin America is littered with this type of illegal covert warfare, most recently in Bolivia with Evo Morales who was nationalizing natural resources that U.S. business wanted access to.