I do consider an abortion an elective procedure and find it hard to justify having others pay for it.
Having said that, the state will end up with a bill: a) pay for the abortion; b) pay for the delivery and care for the child
The state has every right to make their decision on which option to take, but I have a strong feeling that option b) will cost quite a bit more.