US Attorney General Jeff Sessions says he will not quit his job after criticism by President Donald Trump.