A New York state court judge on Monday gutted a former affordable housing tax break that allowed the New York City comptroller to issue judgments against developers who underpaid workers, finding portions of the statute "unconstitutional."