Section 12U. The attorney general or any person whose consent is required either pursuant to section twelve S or under common law, may petition the superior court for an order enjoining the performance of any abortion that may be performed contrary to the provisions of sections twelve L to twelve T, inclusive.