Implement batchSpec.State in GraphQL layer
Created by: mrnugget
Part of #24421 (closed) and implements the batchSpec.State
resolver.
It also removes the "ERRORED"
states which @eseliger and I decided we don't need, since we have automatic retries for jobs disabled and the jobs will be "failed" anyway.