Ketanji Brown Jackson, in her first published opinion as an appellate judge, sided with federal labor unions Tuesday in a dispute over when collective bargaining is triggered in the workplace.