It is applied equally, regardless of politics or race.
The police are humans, and as such are flawed like everyone else.and they have very difficult and dangerous jobs. Much of the outrage in officer involved shootings that lead to riots aren't nearly as charitable towards the officer.