The vote fell almost entirely along party lines, with only Sen. John Fetterman, a Pennsylvania Democrat, joining with all Republicans to pass her confirmation 54-46.
Bondi, a former Florida attorney general and corporate lobbyist, is expected to oversee a radical reshaping of the department that has been the target of Trump’s ire over the criminal cases it brought against him. She enters with the FBI, which she will oversee, in turmoil over the scrutiny of agents involved in investigations related to the president, who has made clear his desire to seek revenge on his perceived adversaries.