Mr Trump had publicly humiliated the top law official over the Russia probe dogging his presidency.