It only has 1st amendment problems if the courts care. Making abortion illegal is an ideological project that the majority of the current SCOTUS and their acolytes has been working towards for at least 40 years. If you think they're going to let the plain text of the constitution, federal law, or its interpreted tradition get in the way of that you have not been paying attention.