If He is righteous then He must judge those that willingly choose to do what is wrong, those that choose to abide in "darkness", those that reject the "light".
People that reject God's offer of love and grace are already judged.
There is more detail in that regard here:
Jesus’ Equality with God
18 For this reason therefore the Jews were seeking all the more to kill Him, because He not only was breaking the Sabbath, but also was calling God His own Father, making Himself equal with God.
19 Therefore Jesus answered and was saying to them, “Truly, truly, I say to you, the Son can do nothing of Himself, unless it is something He sees the Father doing; for whatever the Father does, these things the Son also does in like manner. 20 For the Father loves the Son, and shows Him all things that He Himself is doing; and the Father will show Him greater works than these, so that you will marvel. 21 For just as the Father raises the dead and gives them life, even so the Son also gives life to whom He wishes. 22 For not even the Father judges anyone, but He has given all judgment to the Son, 23 so that all will honor the Son even as they honor the Father. He who does not honor the Son does not honor the Father who sent Him.
24 “Truly, truly, I say to you, he who hears My word, and believes Him who sent Me, has eternal life, and does not come into judgment, but has passed out of death into life.
25 Truly, truly, I say to you, an hour is coming and now is, when the dead will hear the voice of the Son of God, and those who hear will live. 26 For just as the Father has life in Himself, even so He gave to the Son also to have life in Himself; 27 and He gave Him authority to execute judgment, because He is the Son of Man. 28 Do not marvel at this; for an hour is coming, in which all who are in the tombs will hear His voice, 29 and will come forth; those who did the good deeds to a resurrection of life, those who committed the evil deeds to a resurrection of judgment.