Harvard and the Massachusetts Institute of Technology filed a lawsuit in District Court in Boston Wednesday morning against the Department of Homeland Security and U.S. Immigration and Customs Enforcement, according to University President Lawrence S. Bacow.