Pam Bondi, Trump's attorney general, has left her post after facing scrutiny over her actions and investigations.