The U.S. Department of Justice has opened an investigation into the use of race in Harvard University’s admissions practices and has accused the university of failing to cooperate with the probe, according to documents reviewed by The Wall Street Journal.