Pelosi’s Taiwan visit matters less than years of uncertain American foreign policy as Beijing asserted itself.