A judge on Tuesday dismissed a lawsuit brought by House Speaker Mark Eves that accused Governor LePage of using blackmail in order to get a charter school to rescind a job offer.

Eves brought the lawsuit against the governor in July of last year, claiming that LePage had threatened to withhold funding from the Good Will-Hinckley School if they employed his political opponent. The Speaker had been hired as the charter school's next President and was due to start work on July 1st, 2015 but the school rescinded its offer in June. LePage said that Eves had always spoken out against Charter schools and so was not the right candidate for the job.

As a result of the lost offer, Eves not only filed a lawsuit, but the House of Representatives attempted to launch an impeachment of the governor. That measure failed with a vote of 96-52 after three hours of debate.

On Tuesday, U.S. District Judge George Z. Singal agreed with the governor's attorneys, who said LePage was entitled to immunity for his actions. In his 44-page decision, Singal wrote:

"In the court's assessment, the scope of the governor's discretion clearly encompasses advocating for his preferred charter school policy and ensuring that enacted legislation involving charter schools is followed."

A lawyer for Mark Eves has vowed to appeal to a three-judge panel of the 1st Circuit Court of Appeals in Boston. His lawsuit sought compensatory and punitive damages.

More From WQCB Brewer Maine