Narendra Modi pledged $40 million for economic development in the Palestinian territories, marking the first-ever visit by an Indian prime minister to the West Bank.