In his first published opinion on a federal appeals court, Judge Toby Heytens on Tuesday sided with a man charged with a firearms offense, who claimed police conducted an unreasonable search of his bag.