Public transport in Chicago is a good option, specifically the L train. The Blue Line that operates between downtown and O’Hare International airport runs 24 hours a day, so this one might be your best choice when coming from the airport.