The Chicago mayor lost her reelection bid amid pressure from a teachers union and a rise in crime.