An investigation found the tactic was "both lawful and necessary".