Harvard University is setting aside $100m for an endowment fund and other measures to close the educational, social and economic gaps that are legacies of slavery and racism, according to an email the university’s president sent to all students, faculty and staff on Tuesday.