A New Jersey federal judge has upheld a decision to disqualify Kelley Drye & Warren from defending a longtime client against a lawsuit by a company the firm represented when it was sold in 2008.