Presidents have leeway to use military for domestic purposes