The deal, which must still be ratified by members, averts a potential strike that could have darkened Broadway theaters.