Harvard had sued the Trump administration in an effort to restore billions in research funds that the government canceled this spring.