That's a very open question. Under Iowa law, the counties have to provide the buildings to the state, but the state controls them. The position of the state court is that this control is total when it comes to security, and thus they can authorize whatever they like. (And their are court decisions supporting this view.)
Ultimately this is a legal question, which will be answered by the courts. But uh, the smart money is that the Iowa state courts will decide that the Iowa state courts were correct the first time, have lots of power, and didn't break any laws. But hey, anything could happen...