What does it mean to judge righteously
Judging righteously would mean not showing undue favor or disfavor towards someone without a just cause.
Jesus would be the righteous judge in the future.
This implies that Jesus would bestow the gifts of God on those who are innocent and punish those who are wicked.