The simplest way would be to use gravity assists between the moon and earth to cause the ingots to enter a high, stable, but probably fairly eccentric orbit. Basically, the process would go: metals get extracted and refined in asteroid belt => ingots get shot "backwards" (retrograde) from the perspective of the asteroid's orbit around the sun => the ingots "fall" (follow an orbit with a lower perihelion) towards earth => the ingots get close enough the the earth-moon system to be pulled off course => the ingots follow some precalculated path between the earth and moon, each pass of which slows them down a bit more => the ingots are picked up by an orbital craft and brought to a processing facility.
Advantages of this approach:
-Doesn't require anything to be attached to the ingots. You could include a transponder for safety reasons, but assuming the railgun is reasonably accurate it should be pretty simple to plan the route beforehand and warn any ships to steer clear. Even if it veers off course for one reason or another, the ingots would be pretty trivial to detect and track, and if that didn't work for some reason, the chances of it hitting anything are still very low - think of how many satellites or space stations have actually been hit by meteors (i.e. none).
-Doesn't require aero- or lithobraking. Aerobraking is relatively safe (you probably won't end up nuking any major cities), but adding a chaotic, fluid atmosphere and multiplying that uncertainty over potentially millions of ingots means that some are bound to veer off course. Even de-orbiting objects from low earth orbit is inherently unpredictable. Using either type of braking to slow the projectile down into an earth orbit is better, but would lead to at least some loss of material from ablation or, well, from lithobraking. :p
Disadvantages:
-This method would add to the time it takes for the ingots to reach their final orbit. Given the already-considerable time between the asteroid belt and earth, I don't think it would be too substantial, but it is a factor.
-The ingots will probably be put into high, eccentric orbits, since that would take the least number of gravity assists to get into starting from a hyperbolic orbit. The downside would be that it would require more delta-V for the recovery craft the reach them, and even more delta-V to lower and circularize the orbit into something more useful afterwards. Given that your setting has at least some trans-martian travel, orbital maneuvers around earth shouldn't be much of a concern, but it's still something to consider.
Edit: Reading through the other answers, I've also realized that this method wouldn't require any infrastructure on the receiving end. Loss of funding, political upheaval, or even societal or environmental collapse can occur without having to worry about bombarding the planet with dense objects at orbital speeds or losing the payload into interplanetary space. Although I imagine that any rebuilt post-apocalyptic society is going to be very surprised to discover a bunch of refined metal ingots sitting around waiting for them.