A federal judge has granted summary judgment in favor of the town of Westport and several Westport police officers in a suit by a local man who said he was improperly arrested on two occasions.