The group, representing about 38,000 subway and bus workers, plans to support William C. Thompson Jr., the former city comptroller, instead of Joseph J. Lhota, the former chairman of the Metropolitan Transportation Authority.