Walgreens has apologized after a woman's complaint about a pharmacist's refusal to fill her prescription went viral.