Two lawyers from a city-funded nonprofit group have been forced to resign over their appearance in a rap video that endorsed murderous retribution for the death of Eric Garner, the mayor’s office said on Wednesday.

The resignations are part of the organization’s response to a report last week by the New York City Department of Investigation that criticized the lawyers for participating in the video despite knowing that it called for killing police officers.

The scrutiny of the organization, Bronx Defenders, reflects city officials’ dwindling patience for the anti-police rhetoric that grew after Mr. Garner’s death after an encounter with the police in July. The group was given until Wednesday to present disciplinary actions or lose its contract, which is worth about $20 million.

Mayor Bill de Blasio sharply criticized Bronx Defenders last week for its role in the video, and pressed the group to impose harsher penalties on the lawyers than it had originally proposed.