Algeria’s Imane Khelif won the gold medal in women’s welterweight boxing and said the abuse she faced over her gender gave her success “a special taste.”