it required the president to issue an executive order , authorizing joint cooperation with military forces on the u.s. mainland , as required by the posse comitatus regulations , which restrict use of the military inside borders of the united states .