The CIA is not an independent agency, they do as the ametican public tell them.
The CIA has a blank check and does whatever the fuck they want. Much of it opposed by most Americans if they ever find out about it.
As for Congress, the idea that they know any more about the CIA’s activities than the average citizen is laughable.
Even knowing now about al-qaeda and 9/11, arming and training mujahideen in afghanistan was not a mistake.
Ukraine having just applied for NATO membership, I would say you are comparing apples and oranges. Even the muslim NATO member Turkey that is hostile against the US despite the US giving them nukes hasn't backfired.