The Trump administration’s Department of Housing and Urban Development opened a civil rights investigation alleging Boston’s affordable housing programs discriminate against white residents. Mayor Michelle Wu called the probe a political attack.

City officials said their programs comply with federal law and serve all eligible residents. Housing advocates expressed concern that the investigation could chill local affordable housing efforts.