That is not an equivalent example. A more equivalent example would be for the government to withdraw funding from every police department in the US for engaging in racist practices. This is instead an example of a single individual showing himself to be singularly unfit by doing things that clearly undermine the public's trust in both him and his employer. That said, there is one similarity. The legislature does not generally go around threatening to defund police departments unless they fire specific people. They can exert other forms of pressure but in the end it's left to the discretion of those who're directly in charge of the police's employment-related decisions.