In this passage, Lincoln is suggesting that if one assumes that American slavery is a divine offense that was allowed to occur for a certain period, then the Civil War can be seen as a punishment from God due to the existence of that offense. Therefore, the best interpretation of what Lincoln is saying is:
That the Civil War was a punishment from God for allowing slavery to exist.