A judge in Boston has dismissed a Trump administration lawsuit that accused Harvard University of ignoring harassment of Jewish students.