A federal judge in Connecticut dismissed a lawsuit alleging that law firm Bendett & McHugh, two loan-servicing companies and others violated the Fair Debt Collection Practices Act in a foreclosure proceeding.