Andrew G. McCabe’s retirement had been expected, but Monday’s departure was abrupt and unannounced. Republicans have accused Mr. McCabe of being loyal to Hillary Clinton.