Turkish parliament ratifies anti-terror law