The second one derives from archaic судия (singular, masculine -- but I'm not sure. All the genders can fit here).
The contemporary one is the first one.