Bill Gates pledged on Thursday to give away almost his entire personal wealth in the next two decades and said the world’s poorest would receive some $200 billion via his foundation at a time when governments worldwide are slashing international aid.