Judge slams landowners in Canadian pipeline ruling