Millions around the world make a living from picking through waste and reselling it—a vital role that keeps trash manageable but is being squeezed by government policies.