Television and movie actors have voted to ratify a four-year contract with studios and streaming services