There are things judges can do that they don't in practice. A common punishment to foot-dragging is to force the agency to pay attorneys' fees for plaintiffs. This comes out of the agencies litigation budgets, which makes it harder for them to fight other challenges and tends to get results.