Peace and righteousness will be established when the kingdom of God fully comes (see Isaiah 66:12).
like a river … like waves of the sea: There will be abundant peace and overflowing righteousness (compare Amos 5:24). Israel could have had this if its people had listened to God.