Sweden has moved closer to the full repeal of a law that forced transgender citizens to undergo sterilization through surgery to change legal identification.