Pam Bondi confirmed as attorney general in 54-46 vote