Adrienne Adams, the City Council speaker, won endorsements from Letitia James, the state attorney general, and from three major unions including District Council 37.