A judge ruled that New York’s only Republican-held congressional district is unconstitutional and ordered the state to redraw the map by next month.