Special Counsel Jack Smith, who led two criminal cases against President-elect Donald Trump, has resigned from the Department of Justice.