ALBANY — The state's top election enforcement office has issued demands that could throw a wrench in the re-election efforts of the state Senate's former Independent Democratic Conference members.

The fate of more than $2.5 million raised from a partnership between the Independence Party and the state Senate's now-defunct IDC was the subject of a letter sent on Friday by the state's Division of Election Law Enforcement, which identified more than $1.4 million that needs to be refunded to contributors. The letter also demanded candidates return excessive contributions, which could add up to hundreds of thousands of dollars.

The letter from the office of Chief Enforcement Counsel Risa Sugarman comes almost seven weeks after a state supreme court ruled that the Senate Independence Campaign Committee and an associated housekeeping account were illegal because the breakaway group of Democratic senators was not a political party.

The SICC accounts were created in 2016 in partnership with the Independence Party to boost then-IDC Leader Jeff Klein's ability to raise and spend campaign money, as the accounts were able to accept larger campaign donations and transfer unlimited amounts to IDC candidates.

The increased fundraising muscle was flexed in 2016 and had been expected to play a pivotal role in the September primaries.

The IDC abandoned its "majority coalition" with the Senate's Republicans and rejoined the mainline Democratic conference in April, in a deal brokered by Gov. Andrew M. Cuomo. Klein became deputy leader of the reunified Democratic conference and has been endorsed for re-election by Senate Democratic Conference Leader Andrea Stewart-Cousins.

The reunification, however, has not quieted all the progressive critics of the former IDC members, some of whom are facing competitive primary challenges. In April, Klein reiterated plans to use the SICC funds to help them.

Lawrence A. Mandelker, the attorney for the former IDC members and the Independence Party, said last month that steps had been taken to fully comply with the court ruling from June. At the time, Mandelker also indicated there were no plans to refund any contributions from the SICC and its housekeeping account.

In a written response to Sugarman's office on Tuesday, he argued that the demands from the state went beyond the judgment of the court. "Your office must know that the relief you obtained from the court was extraordinarily narrow," Mandelker wrote.

But Sugarman's office, in last week's letter, argues that the steps taken don't go far enough and demands action within 20 days. It's likely the dispute will end up back in court — potentially before the same state supreme court judge who invalidated the fundraising arrangement in June.

The state's letter says that complying with the court's ruling requires refunding more than $1.4 million received by the housekeeping account to the original contributors because the IDC wasn't allowed to set up a housekeeping account, and refunding contributions to candidates from the SICC that were in excess of standard contribution limits.

In 2016, the SICC account reported spending more than $686,000 on behalf of five IDC senators, including nearly $540,000 for Marisol Alcantara, who was elected from a Manhattan district that year; about $57,000 for Tony Avella of Queens; and $50,000 for David Carlucci of the Hudson Valley.

The maximum contribution to a state Senate candidate who faced a primary and general election opponent in 2016 was $16,800.

Since February, the SICC has transferred almost $750,000 to seven of the former IDC members. Nearly half of that money was transferred before April 23, when the account was still controlled by Klein and would have been subject to traditional contribution limits, according to Sugarman's office.

Alcantara received $87,000 during this period, Klein got $79,000 and the five other recipients also got more than the $18,000 contribution limit for this year.

The $392, 950 transferred since April 23, when state Independence Party Chair Frank McKay took over the account, wouldn't be subject to limits if it came from money raised since then — but records indicate the account brought in less than a third of that amount in the past three months.

The letter from Sugarman's office maintains that the funds in the SICC account, which were raised before April 23, need to be deposited in a new, non-party account controlled by Klein. The only funds allowed in the SICC account, the letter says, are those raised in the past three months.

Barbara Brancaccio, a spokesperson for the former IDC members and Independence Party, said Sugarman's office was "unwilling to abide by the decision of the court and the counsel to the committee will be asking the court to sanction her if she persists in distorting the judgment of the court. Her release of this letter to the press in the middle of a heated political campaign is an abuse of her powers."

Brancaccio also confirmed that, in response to the June ruling from the state supreme court, a notice of appeal was filed to preserve the committee's legal options.