You can, under limited circumstances, appeal your case to a real court, but the primary court that most people being deported deal with is in the executive branch meaning the executive branch conducts a full deportation from inception to execution in almost all cases.
If you think of the three branches of government, immigration proceedings are squarely under the executive, the same branch trying to deport people.