TJX Companies have settled with nearly all of the banks and related bank associations over a breach of credit card data.