The Massachusetts State House in Boston
The Massachusetts State House in Boston

BOSTON — House and Senate leaders broke a weekslong impasse over a more than $1 billion surplus spending bill Wednesday night, cutting a deal that dropped a controversial corporate tax change that would have financially benefited Massachusetts businesses and set aside $32 million for repairs on the MBTA, which is less than the $50 million sought by Gov. Charlie Baker.

The vote on the compromise budget bill to close the books on the fiscal year that ended back in June capped a tumultuous day during which Comptroller Andrew Maylor backed off a threat to sweep the entire surplus into reserves by midafternoon if the Legislature couldn’t resolve its differences.

And before the deal was finalized, House counsel Jim Kennedy got involved in a back-and-forth with Maylor over the breadth of his legal authority, with Kennedy challenging Maylor’s assertion of power to sweep the surplus and leave deficits in certain accounts, including MassHealth.

The total spending in the final version of the budget clocked in at $541 million, which was significantly less than previous iterations of the bill that ranged from $723 million to $853 million. Instead of spending more of the surplus, the budget bill will deposit $587 million into the state’s “rainy day” fund, pushing the balance of the reserve account to $3.45 billion.

House Ways and Means Chairman Aaron Michlewitz said the compromise reflected a increased level of caution that leaders felt was appropriate after passing a major $1.5 billion, seven-year education funding overhaul and hearing last week from economists about the risk of an economic slowdown in 2020 and beyond.

The corporate tax provision was widely viewed by observers as a major sticking point in negotiations between the House and Senate over the past several weeks, and the decision by the House to drop it completely from the compromise came after some liberal Democrats were threatening to hold up any deal that included it.

The provision would have decoupled Massachusetts from the federal tax code and allowed businesses to avoid paying about $37 million in new taxes as a result of the 2018 Republican tax reform law signed by President Donald Trump that capped the amount of interest a corporation could deduct on debt built up in order to invest in the company. While proponents saw it as a way to foster job growth and capital investment, critics slammed it as an unnecessary corporate tax giveaway.

On Twitter, progressive Democrat Rep. Mike Connolly declared victory, thanking his colleagues Reps. Lindsay Sabadosa, Maria Robinson and Tami Gouveia for speaking out against the provision. “It’s not every day that we defeat the big corporate lobby on Beacon Hill,” Connolly tweeted.

Senate President Karen Spilka said there was “some disappointment” that all of the priorities legislators would have liked to spend surplus money on were not ultimately funded, but described those decisions as “a tension” between wanting to build up the rainy day fund and spend the money.

One area where conference committee negotiators cut was in funding for the MBTA, which was reduced from $50 million to $32 million to help pay for Baker’s accelerated repair program. The reduction came just days after an outside panel hired by the Baker administration to review the MBTA system identified significant gaps in safety.

House and Senate negotiators also eliminated the targeted assistance funding sought by Baker for grants to improve test scores in underperforming school districts. Baker had initially requested $50 million, but cut that ask down to $30 million last week.

The completion of the budget came more than a month after Comptroller Maylor’s statutory Oct. 31 deadline to close the books on fiscal 2019 and publish an annual financial report. While the fiscal year ended on June 30, Baker did not file the original closeout budget until Sept. 9 and the Democrat-controlled legislature has been at odds ever since over how to spend the surplus.

The bill does establish and fund a period of early voting ahead of the March 3 presidential primaries, but it does not create an early voting window as recommended by the Senate before the 2020 state primary, which the bill scheduled for Sept. 1.

The final version also omits language that would have allowed farmers to use agricultural conservation land for hemp cultivation, even though both the House and Senate have now passed versions of that provision in separate bills.

Wednesday began with a 3 p.m. deadline set by the comptroller hanging over the activities at the State House, but as it became clear that legislative negotiators were going to blow through that deadline, Maylor said he would temporarily back off his threat to sweep the funds into the state’s rainy day account because he had learned of “substantial progress” in negotiations between the House and Senate.

Maylor said that if the Legislature did not make “clear progress toward final enactment” on Wednesday, he would be ready to transfer the funds Thursday morning, but he did not set another firm deadline.

While Baker must still sign the budget accord, House Minority Leader Brad Jones said prior to the announcement of an agreement that “there should be little or no cause for celebration or congratulations or adulation that this has been resolved.”

“It’s not the way it should work. The thing we can’t have happen has become the new normal,” Jones said, comparing a closeout budget accord so long after the Oct. 31 deadline to “turning a term paper in long after a semester is over.”

But even as those talks continued, House counsel Jim Kennedy wrote a two-page letter to the comptroller’s office challenging Maylor’s legal standing to transfer the surplus without direction from the Legislature.

The letter seemed to escalate the stakes of the negotiations and raised questions about whether the Legislature and the comptroller could be on a legal collision course that would have to be cleaned up by the courts.

Kennedy, in his note to General Counsel and Assistant Comptroller Amy Nable, said that Maylor would be acting “ultra vires,” or beyond one’s legal authority, by unilaterally transferring the surplus. The House’s top lawyer took issue with the sections of general law cited by Maylor as giving him the authority to act, and suggested that doing so would be “repugnant to the Constitution,” which requires a balanced budget.

Kennedy also said that if Maylor transfers the entire surplus into the stabilization fund while some funds are deficient, he will be causing a deficit in certain accounts, violating his governing statute.

Maylor responded by saying that while he didn’t want to “litigate this issue in the press” he continued to disagree with Kennedy’s legal interpretation, and gave a warning about what might happen next year if the closeout budget is late again.

“It is our hope that the Fiscal Year 2019 closeout process was a true anomaly and that the opinion of House Counsel does not foreshadow the reaction to future fiscal year closes, and the associated net surplus transfers which the Comptroller has already stated will happen no later than the statutory deadline,” Maylor said.

Maylor cited as supporting evidence for his authority to transfer the money on his own the fact that the chairs of the House and Senate Ways and Means Committees called him ““directly” on Wednesday and made a “personal request” that he give them more time. House officials disputed this account, and said it was Maylor who reached out to them first. When Michlewitz called him back, the comptroller was given only an update on the status of talks between the branches, according to the officials.

“We made no such request,” one House official said, requesting anonymity to share details of a private conversation.