French magistrates ruled on Thursday that authorities had acted legally in tapping ex-president Nicolas Sarkozy‘s phone as part of an investigation into allegations of influence peddling, in a potential blow to his hopes to run for president in 2017.