The Defense Department has issued guidance to its military and civilian leadership on how to proceed if the federal government should shut down, according to a memorandum from Deputy Defense Secretary Patrick M. Shanahan.