Family claims win in high court challenge to library cuts