Ultimately the state budget passed this weekend is virtually what Gov. Andrew Cuomo wanted when he first announced his plans at the start of the year.

Cuomo won agreements on criminal justice law changes like ending cash bail for misdemeanor and non-violent felonies. Congestion pricing for Manhattan — creating a system of tolls for entering Manhattan — is being set in motion after a generation of failed proposals. A cap on property tax increases, his signature economic achievement from his first term, is being made permanent.

Lawmakers are also moving toward the creation of a system of publicly financed and funded campaigns, through the creation of a commission. Cuomo said the complexities of setting up a statewide system, considering the state’s varying media markets, necessitated the commission.

The budget is the first spending plan in a decade to be adopted with an all-Democratic Legislature. And despite the shared goals, lawmakers and Cuomo still differed over the details.

“You still have differences of opinion, possibly because we took on such difficult issues,” Cuomo said at a news conference on Sunday afternoon.

Criminal justice law changes created a debate within Democratic conferences over how far to go on curtailing cash bail. Cuomo indicated he wanted to go further.

“You had a lot of Democrats who were nervous about it,” he said.

Public financing of campaigns was also a heavy lift amid opposition from some Democrats in the state Assembly and, potentially, among voters.

“What do you think it is, 50-50 at best?” Cuomo said.

Marijuana legalization will still have to wait for another time, as lawmakers have also disagreed over traffic safety concerns and how to spend the revenue.

“These were very difficult issues,” Cuomo said. “I think those are the important ones to take on. I’m not here to do the easy ones.”

The budget is the first of Cuomo’s third term, following an election season in which he was challenged from an energized liberal base of the Democratic Party and after progressive Democrats newly elected in the Legislature have sought to shift the state even further leftward.

Democrats in the Legislature wanted to spend more than $1 billion more in education aid. They want to create a single-payer health care system. There were whispers of lawmakers seeking to go it alone on the budget and cut the governor out of the process.

But in the end, the budget was one that’s largely been traditional for Cuomo since he’s been in office as he wields more leverage over the negotiations. Give-and-take compromises on public financing of elections as well as criminal justice laws, while also making a mark on how New Yorkers live.