Strike dodged with deal between film and TV crews, studios