The hard-right National Rally leader has ended months of speculation, after a court ruled she could run but would have to wear a tag for a year.