Possible meanings are 1) "Yahweh will redeem Zion because the people there do what is just, and he will redeem those who repent because they do what Yahweh says is right" or 2) "Yahweh will redeem Zion because he is just, and he will redeem those who repent because he is righteous"