President-elect Joe Biden has picked Boston Mayor Marty Walsh, a former top union leader, to serve as his Labor secretary, according to four sources, ending a selection process that split the labor movement and stoked diversity concerns among Democrats.