On Monday , a federal judge ruled that Mamaroneck , a village in suburban Westchester County , N.Y. , had waged a discriminatory campaign of ticketing and harassment to drive Latino day laborers out of town .