Judge: File-swapping tools are legal