Togo wanted to distribute millions of dollars to its citizens in dire straits. There was just one daunting problem: How could it identify the neediest of the needy?