No, it's against the law to harass Judges. Freedom of speech doesn't include the right to intimidate the Judicial Branch. Two totally separate issues.
That Police Officer has no right to enter someone's property when they aren't home to remove a political flag he finds offensive. That's a clear violation of someone's First Amendment rights.
And let's be honest here, Kiddies...when the Police start sneaking around people's property when they're not home...doing things they know the owner wouldn't agree to? That's an act of cowardice.