Those agencies both monitor and retaliate against members of Congress. The NSA and CIA regulate government, not the other way around.
The NSA's warrantless surveillance program (https://en.wikipedia.org/wiki/NSA_warrantless_surveillance_(...) and the CIA's Operation CHAOS (https://en.wikipedia.org/wiki/Operation_CHAOS) are two examples of this behavior.