John Carter, Assistant Secretary of War