City officials will have to move cautiously to extend the city’s program that earmarks a portion of city contracts for firms owned by Black, Latino and Asian Chicagoans as well as women in the face of hostile courts, officials warned the Chicago City Council.