Members of the screenwriters union overwhelmingly ratified a four-year agreement with Hollywood studios and streamers.