IATSE ratifies new contract by narrow margin