The FDA approved the first pill to treat the debilitating condition that affects nearly half a million women a year.