They 'ensure' that those that violate the rights of others will be punished.
In this, they -protect- the rights of the people, which differs from 'ensuring' or 'providing'.
So, I ask again:
How does the latter necessarily follow from the former?
How does "the duty to ensure the rights of people" equate to providing the means to exercise those rights, or even ensuring that those people can afford to exercise them?