The Pennsylvania Supreme Court has released a new configuration of Congressional districts which could provide the Democrats with a boost in the upcoming midterm elections.

The reshaping of political boundaries represents the latest phase in a years-long political battle. The Pennsylvania Supreme Court ruled earlier this year that districts crafted by the Republican majority were unconstitutional and sought to give the GOP “a lasting electoral advantage”, backing plaintiffs who alleged the maps were drawn to undermine Democratic candidates.

Democratic Governor Tom Wolf subsequently refused a new map drawn by Republicans, who in turn repudiated a proposed map from Mr Wolf as a “ridiculously hypocritical and a partisan move to help Nancy Pelosi, the DNC and Pennsylvania Democrats steal Pennsylvania congressional seats”. The disagreement put the matter in the hands of the court.

By rejecting Republican-drawn districts and issuing new maps intended to be more balanced, the court sent a charge through the politic landscape of a perennial swing state months out from November elections.

Democrats hope they will be able to wrest the House of Representatives from Republican control – Republicans currently hold 13 out of Pennsylvania’s 18 House seats – and some analysts said the new maps would benefit Democrats.

“The early indications are that this is a much more competitive map which will help the Democrats compared to the gerrymandered maps drawn by the Republican legislature,” election law analyst Rick Hasen wrote.

In pictures: US Elections 2016 Show all 15 1 /15 In pictures: US Elections 2016 In pictures: US Elections 2016 Democratic U.S. presidential candidate Bernie Sanders speaks to supporters after rival candidate Hillary Clinton was projected as the winner in the Nevada Democratic caucuses Reuters In pictures: US Elections 2016 Democratic presidential candidate Hillary Clinton takes photos with workers at her campaign office in Des Moines, Iowa AP In pictures: US Elections 2016 Republican presidential candidate Mike Huckabee, second from left, prays before lunch with supporters at Drake Diner in Des Moines, Iowa Reuters In pictures: US Elections 2016 Democratic presidential candidate and former Maryland Governor. Martin O'Malley, speaks during a campaign stop in Waterloo, Iowa AP In pictures: US Elections 2016 Democratic presidential candidate Bernie Sanders speaks, as his wife Jane O’Meara Sanders looks on, at a campaign event at Iowa State University Getty In pictures: US Elections 2016 Republican presidential candidate Marco Rubio speaks at St. Ambrose University in Davenport, Iowa Reuters In pictures: US Elections 2016 Republican presidential candidate Ben Carson speaks at a campaign event at Fireside Pub and Steak House in Manchester, Iowa. Getty In pictures: US Elections 2016 Republican presidential candidate Rick Santorum visiting supporters at a house party in West Des Moines, Iowa Reuters In pictures: US Elections 2016 Republican presidential candidate Donald Trump at a campaign event in Cedar Rapids, Iowa AP In pictures: US Elections 2016 Republican candidate Ted Cruz campaigns at Greene County Community Centre in Jefferson, Iowa AP In pictures: US Elections 2016 Senator Rand Paul speaks during a Caucus rally at his Des Moines headquarters in Iowa Getty In pictures: US Elections 2016 Republican candidate Jeb Bush speaks at a campaign event in Des Moines, Iowa AFP In pictures: US Elections 2016 Former Alaska Governor Sarah Palin introducing the arrival of Donald Trump during a campaign rally in Cedar Rapids, Iowa Reuters In pictures: US Elections 2016 A portrait of Democratic candidate Bernie Sanders at his campaign headquarters in Des Moines, Iowa Getty In pictures: US Elections 2016 Campaign badges on sale ahead of a Trump rally at the Ramada Waterloo Hotel and Convention Centre in Waterloo, Iowa Getty

The new map was “actively helping Dems compensate for their natural geographic disadvantage,” analyst Dave Wasserman of the nonpartisan Cook Political Report said on Twitter.

“Make no mistake: this is the PA map Dems wanted,” he wrote.