Hollywood writers’ deal may set a template for talks with striking actors