Harvard University has condemned a new US executive order, banning the institution from bringing in new foreign students for six months.