A father who refused to pay a £120 fine for taking his daughter out of school during term-time for an unauthorised holiday has won a legal challenge at the High Court.