A Hartford Superior Court judge ruled Thursday against Republican gubernatorial candidate Bob Stefanowski in his effort to block the Independent Party of Connecticut from running a candidate for governor.