Brooklyn judge rejects Sen. Dilan's attempt to keep challenger off the ballot