The ruling is a win for immigration judges, who are also suing the DOJ agency that oversees immigration courts.