Following a request from US President Donald Trump, Attorney General Jeff Sessions has resigned.