The contraceptive, which has courted controversy for years, will no longer be sold or distributed by Bayer Pharmaceuticals at the end of this year.