The Trump administration’s effort to crack down on leaks comes after a series of information security crises.