A Manhattan federal judge shut down the city’s bid to toss a $2.2 million jury award to the family of an emotionally disturbed man shot by cops in his Harlem apartment in 2012.

Judge Kevin Castel said he will let stand a 2017 jury verdict that found Mohamed Bah was not actually a threat to cops when he was shot and killed by officers who had pried open his door to see what he was doing inside. The NYPD was called to the scene after Bah’s mother called 911 for an ambulance because he had been behaving strangely.

“Implicit in the jury’s finding of liability was that [NYPD Detective Edwin] Mateo did not have a reasonable belief, even if mistaken, that Bah posed a significant threat of death of serious injury to himself or another person,” the judge said in his ruling.

The city had argued that officers shot Bah because he lunged at them with a kitchen knife.

But officer Mateo, who allegedly shouted “shoot him, he’s stabbing me” at the scene, later testified that he couldn’t recall if he had been stabbed. And the knife was never produced as evidence because it had been contaminated in a storage warehouse due to Hurricane Sandy.

The judge granted the city its request to overturn the jury’s finding that NYPD Lt. Michael Licitra should be held liable for failing to supervise the officers on the scene, however, saying that Licitra’s decision to let officers pry open Bah’s door was only an error in hindsight.

“Before he [Licitra] authorized entry, he understood that Bah was in need of hospitalization, had a large kitchen knife in hand and had been largely unresponsive in the apartment for about 45 minutes,” the judge said. “Hindsight would have taught a different lesson if Bah had seriously injured himself during further delay.”

The city did not say whether it will appeal the ruling.

“We are reviewing the decision to determine what further action we take,” a spokesman for the city’s Law Department said.