The Vietnam bill passed by a majority , but it fell short of the two-thirds majority needed under special rules invoked to speed its consideration on the eve of Mr. Bush 's trip to Hanoi , his first visit to the country with which the United States fought a war a generation ago .