A federal judge has granted a motion to dismiss that was filed by a number of high-ranking Philadelphia officials who were named in a lawsuit initiated by a city man who alleged he was unlawfully detained and roughed up by Philadelphia police officers after an encounter in January 2011.