The World Bank announced Thursday that it had raised close to $24 billion to provide loans and grants for some of the world's poorest nations.