Near-Optimal $\Phi$-Regret Learning in Extensive-Form Games