By a vote of 59 to 40 , Israeli lawmakers passed a bill Wednesday to compensate the 8,500 settlers who will be affected by Prime Minister Ariel Sharon 's plan .