Mueller transformed the nation’s premier law enforcement agency into a terrorism-fighting force after the September 11, 2001, attacks.