It’s unclear what prompted Trump to drop Giuliani, who was a devoted surrogate during the presidential campaign but has since been dogged by questions over his consulting work for foreign governments.