The curator and essayist will become the magazine’s next leader after a period of turmoil.