Pam Bondi, a former Florida attorney general and longtime prosecutor, had earned praise for her pledges not to politicize the Justice Department.