The near-total abortion ban is to go into effect in six months, though legal challenges are expected.