Harmeet Dhillon resigns from Justice Department’s storied civil rights division after embarrassing GOP losses