The US government froze more than $2.2bn in funding for Harvard after it defied demands by Trump to curb protests on campus.