The Supreme Court ruled Monday that police cannot be sued for using force against people with mental disabilities when their constitutional right to privacy is not clear, reports USA Today.

The 6-2 ruling exonerated two San Francisco police officers who broke into the room of a mentally disabled woman and shot her after she threatened them with a knife.

It was a victory for the city/county police force, and more broadly for law enforcement officers nationwide who regularly must decide whether to use force against people exhibiting erratic behavior.