The inspectors general for two intelligence agencies were each overpaid by tens of thousands of dollars between 2016 and 2020.