A Wake County judge barred state NAACP President William Barber and a few other people from the Legislative Building until they're trespassing cases from a May protest there are resolved.