Senior FBI official resisted Trump administration’s orders to fire agents