Officials are weighing whether to relocate the defense secretary and the secretary of state from Fort Lesley J. McNair.