A historian traces the scientific family’s complicated lives and influential legacies