The agency watchdog investigated whether the Defense secretary violated the agency’s standards for sharing classified information and put troops in danger.