Decades-old legislation that enshrined the Defense Department in federal law remains in place, but the Pentagon moved swiftly to adopt the Department of War name.