A French appeals court has cleared the way for Marine Le Pen to run in the 2027 presidential election - but with an electronic tag.