Harvard University says its president, Claudine Gay, will keep her job despite mounting controversy over her appearance before Congress last week.