Mali's coup leaders have agreed to step down and hand power to civilian rule, in return for an end to sanctions imposed by the country's worried neighbors.