President Trump had raised the case during the campaign to contrast with the treatment given to Hillary Clinton.