In a late-night memorandum, Trump revisited past grudges against lawyers who have opposed him and vowed to punish lawyers and law firms by revoked security clearances and cancelling federal contracts they hold.