Few if any analysts see Mr. Trump as a Stalin, who crushed science, or even as a direct analog to this era’s strongmen leaders. But his assault on researchers and their institutions is so deep that historians and other experts see similarities to the playbook employed by autocratic regimes to curb science.