But the judges ' ruling means that defeating the plan would not only unravel a major piece of the budget agreement but also potentially cede decision-making over prison policies to the federal courts .