TALLAHASSEE, Fla. -

The state Legislature has approved a new map for Florida's congressional districts after a judge ruled that the former districts were drawn illegally to benefit Republicans.

The Republican-controlled Legislature on Monday voted largely along partisan lines to approve a new map that alters seven of the state's 27 congressional districts.

The changes would make two seats slightly more competitive for Democrats. But it's not certain the new districts will change Florida's congressional delegation. Republicans currently hold a 17-10 edge.

Legislators held a three-day special session to fix the congressional map after a judge ruled that two districts were drawn illegally. Judge Terry Lewis gave legislators until this Friday to draw a new map.

The new districts may not be in place before the 2016 elections.