Merrick Garland exits with his record under scrutiny and the Justice Department bracing for upheaval