The US sportswear firm settled the legal claim just weeks before a class action court case.