After you activate a library ninjutsu ability, you continue the search effect where you left off. Once the search effect finishes resolving, the active player gets priority with the library ninjutsu ability on the stack. Any abilities that triggered when the ability was activated are put on the stack now.