A 15-year-old Icelandic girl has successfully overturned a government decision that denied her the right to legally use her own name.