The second-ranking Senate Democrat will retire after his decadeslong career representing Illinois in Congress.