Attorney General Josh Stein won re-election to the state’s top legal job.