The company withdrew the adverts under pressure from conservatives, then reversed its decision.