The measure drew significant Democratic support, demonstrating a sharp and rapid shift in attitude toward Israel within the party and the U.S.