A New York state judge ruled that New York City’s only Republican-held congressional district was drawn unconstitutionally, ordering a new map.