It was considered progressive at the time, passed by a Democratic legislature in fact.
This law was meant to stop men from divorcing pregnant women as a way to avoid child support. By forcing men to wait until after birth, courts could set up child support during the divorce proceedings.