Russian hackers were able to access thousands of emails from a top-ranking Democrat after an aide typed the word “legitimate” instead of “illegitimate” by mistake, an investigation by the New York Times has found.