On Monday, Mark Gaffney, who has been president of the state AFL-CIO for a dozen years, will turn over the job to Karla Swift, a longtime staffer for the United Auto Workers union.