Remember that Posse Comitatus was written in the aftermath of the Civil War in response to Reconstruction era local governments pressing US Army Soldiers into service to enforce local (and often Un-Constitutional) laws. Indeed, as written, it is so ambiguous that no one has ever been prosecuted for violating it.