The government on Tuesday officially repealed a controversial legal provision that was issued three years ago “to curb the spread of infectious diseases” but was widely condemned for stigmatizing women with HIV, particularly prostitutes, as it allowed their details to be made public.