President Barack Obama delivered his farewell address in Chicago, where he launched his political career eight years ago.