The decision effectively ends abortion access for roughly 40 million women and girls in nearly two dozen states across the country.