ORLANDO, Fla. — Democratic leaders had toiled past midnight for the second night in a row when they finally finished haggling over their platform, a compilation of the party's principles and proposals.

Dozens of printouts of amendments, covering issues from health care policy to industrial hemp production, were stacked on weary committee members' tables.

“There has been no deliberation of a party platform like this for decades,” Connecticut Gov. Dannel Malloy, the committee's co-chair, said early Sunday morning as he ended the two-day meeting in a hotel conference room.

The intensity of the debate surrounding the platform — a nonbinding document often ignored by candidates and voters alike — was a reflection of the importance placed on the negotiations by Bernie Sanders, the Vermont senator who fell short in his campaign for the Democratic presidential nomination but remains determined to push the party to the left.

Presumptive nominee Hillary Clinton made several concessions to Sanders. The platform now calls for a $15-per-hour federal minimum wage, expansion of Social Security and setting a price on greenhouse gas emissions, positions that Sanders had embraced in contrast to Clinton's more moderate stances during the primaries this winter and spring.

Warren Gunnels, a policy adviser for Sanders, said 80 percent of the changes sought by the Vermont senator were included in the final draft, which will be presented at the party's convention in Philadelphia this month.

A noteworthy exception was the Trans-Pacific Partnership, or TPP, a trade deal championed by President Barack Obama. Sanders wanted opposition to the agreement written into the platform, but his representatives were outvoted by other committee members determined to avoid a public breach with the administration.

Sanders' team is considering whether to submit a minority report in Philadelphia to continue pushing the issue on the convention floor.

The Clinton campaign said it was pleased with the outcome of the negotiations, which preceded an endorsement of Clinton by Sanders that is expected Tuesday in New Hampshire. “We are proud of the work that Democrats did in Orlando and for coming together to further strengthen the most progressive platform in the history of our party,” said Maya Harris, a Clinton adviser.

However, the conversations over the platform reflected lingering distrust of Clinton on the part of some Sanders supporters, who have repeatedly accused her of not being progressive enough. They plan to use the platform as a benchmark if she's elected to the White House in November.

One of the most contentious debates in Orlando involved the TPP. The agreement would create the world's largest free trade zone, and Obama wants to ensure Congress ratifies it before he leaves office in January.

Although Obama didn't send representatives to Orlando, his presence was felt, and it forced political contortions by Clinton and labor leaders at the meeting. Union leaders gave speeches blasting the TPP, but then fought Sanders' attempts to enshrine that opposition in the platform. And even though Clinton opposed the trade deal during the primaries, her representatives on the committee rallied to defeat the amendment pushed by Sanders.

The final language in the platform urges higher standards in trade deals to protect workers, but it doesn't make any specific reference to the TPP.

“I felt we couldn't embarrass President Obama,” said Veronica Turner, a union official from Massachusetts. “It's about respecting his leadership.”

The debate reflected lingering concerns about Clinton's chances in the general election. Presumptive Republican nominee Donald Trump has made fighting trade deals a cornerstone of his campaign, and Sanders supporters said failing to enshrine opposition to the TPP in the Democrats' platform would give him a political opening.

chris.megerian@latimes.com