You got it reversed. AFAIK, there are no federal laws prohibiting abortion but there are federal laws prohibiting the use and sale of cannabis. Some states chose to criminalize abortion, but not all do. And many states chose to basically ignore the federal laws on cannabis (I'm not sure exactly how that one works, to be honest).