A court ruled that state Democrats failed to follow proper constitutional procedures when redrawing congressional maps in a way that could have resulted in four additional Democratic seats in the House.