The same Jesus that is quoted in the verses that you posted said “judge righteous judgement”
If you read the entire context of the verses that you offer, you would find that it was only teaching against hypocrisy, not a commandment not to judge.
We are commanded to judge.
I see vague, general, personally preferential condemnation and judgment here. Not the kind of righteous judgment Jesus was talking about. Not the kind James spoke of when he said about the meekness of wisdom, that is from above is first pure, then peaceable, gentle, and easy to be intreated, full of mercy and good fruits, without partiality, and without hypocrisy. .