The U.S. attorney general has named a special counsel to oversee two sensitive investigations involving former President Donald Trump.