Hackers gained access to Target’s computer systems through the stolen credentials of a heating and refrigeration contractor.