Decision to remove abortion from federal penal code comes amid trend in Latin America of loosening restrictions on procedure