Director and screenwriter James Vanderbilt’s film is based on the 2013 book “The Nazi and the Psychiatrist” by Jack El-Hai.