Poland's parliament has withdrawn proposed legislation that would have imposed a near-total ban on abortion in the country.