Female judge punished for having group sex in courthouse