Donald Trump has distanced himself from a revived 1864 law that would ban most abortions.