I'll be hated like I'm a monster for saying this, but hear me out: the police officers on the street do only what they are told by their superiors. It's not their choice to
a) harress cyclists rather than going after murderers and thieves
b) escort a community ride
c) generally, do action X
Most of them are just people like you and me, working for a living and trying to "put food on their families".
Direct your anger where it belongs: their superiors - in the end, politicians. The guys you see on the street are easy targets, peons that will absorb the brunt of the stupidity of their superiors' policies.