The move makes it legal to have an abortion within the first 12 weeks of pregnancy .