AFL-CIO elects first woman president; first African-American for No. 2 job