File-sharing legal in Canada, judge rules