I’m pretty sure J. Edgar Hoover corrupted the FBI.
As long as they catch an occasional criminal on the side the public has allowed them to pursue their primary endeavors.
Indeed. The FBI and CIA have been corrupt since their founding. The natural state of government is corruption. It has always been that way.