But according to the story it was part of the plan and his purpose for being here. So Judas took an essential step to achieve that purpose.
Just because God is omnipotent and uses evil for good does not make evil good. It is still evil and rightly judged.
As in Romans where it says “what shall we say then, shall evil flourish that grace may abound? May it never be..”
Evil is profoundly evil and God never endorses or authors it. But in His power and sovereignty He uses it.