New biography of Lincoln's Secretary of War reveals a resilient man, haunted by grief