To hold people's sin against them is to say that they are guilty for their sin. Here it represents punishing them for their sin.