A Long Island judge has dismissed a lawsuit filed by Suffolk County against disgraced former District Attorney Thomas Spota and others, ruling the county had no standing to sue under the claims asserted.