The testimony could cast light on the previous administration’s abuse of the spyware software that could have targeted phones.