That passage says nothing about a ransom being paid to the Law. The Bible is very clear that the ransom for souls was paid to God (the LORD).
When thou takest the sum of the children of Israel after their number, then shall they give every man a ransom for his soul unto the LORD, when thou numberest them; that there be no plague among them, when thou numberest them. (Exod 30:12)
Then He [God] is gracious unto him [the one about to die], and saith, Deliver him from going down to the pit [Sheol]: I have found a ransom [Christ]. (Job 33:24)
None of them can by any means redeem his brother, nor give to God a ransom for him: (For the redemption of their soul is precious, and it ceaseth for ever). (Psa 49:8)
[Christ says] I will ransom them from the power of the grave; I will redeem them from death: O death, I will be thy plagues; O grave, I will be thy destruction: repentance shall be hid from mine eyes. (Hos 13:14)
Even as the Son of Man came not to be ministered unto, but to minister, and to give his life a ransom for many. (Mt 20:28; Mk 10:45)
For there is one God, and one mediator between God and men, the man Christ Jesus; Who gave himself a ransom for all, to be testified in due time. (1 Tim 2:5,6)
Take heed therefore unto yourselves, and to all the flock, over the which the Holy Ghost hath made you overseers, to feed the church of God, which he hath purchased with his own blood. (Acts 20:28)