The surprise announcement comes as the Defense Department prepares to lay off tens of thousands of civilians.