The breach of Home Depot’s payment systems may have compromised 56 million payment cards as a result of malware that has since been eliminated, the company said Thursday.