Term-time holiday dad loses court battle