A court has found that Florida's 2012 congressional district redrawing illegally favored the Republican Party. The judge ruled in a favor of a group of organizations that took the matter to court two months ago.

The group, composed of voting rights organizations led by the League of Women Voters, filed a lawsuit against the state Legislature's redrawing of congressional maps, claiming them to be illegal, according to the AP. The lawsuit cited the 2010 amendment to the Florida constitution that "says districts cannot be drawn to favor an incumbent or a member of a political party."

In his decision, Judge Terry Lewis of Florida's Second Judicial Circuit Court ruled that two of the state's districts were illegal and should be redrawn. The ruling has been called a victory for voting rights groups.

"It does right by the voters who said they want a new way of doing business," said Justin Levitt, a law professor at Loyola who follows redistricting cases. He said decision "could be a model for other states to follow," according to the AP.

The fifth and 10th districts must be redrawn, The New York Times reported. The former is held by a Republican, the latter by a Democrat. Redrawing these districts will affect neighboring ones but is unlikely to affect the upcoming elections.

The 41-page ruling blasted the state's redistricting process and criticized "the Republican establishment, including political operatives."

"Republican political consultants or operatives did, in fact, conspire to manipulate and influence the redistricting process," the judge wrote. He also quoted President George Washington, who warned of "cunning, ambitious and unprincipled men," in another part of the ruling.

According to the Times, the state's Republican Party will review the ruling. However, the voting rights groups want to move forward as soon as possible; "it would be wrong to allow the 2014 elections to go forward with illegally drawn districts," the AP reported the groups' lawyer believes.