Judge dismisses final charge against man in pipeline protest