Gov. Andrew Cuomo signed into law his gun control package that passed both chambers of the Legislature this week and only a month after a school shooting in Connecticut left 20 children dead.

Cuomo’s gun control law comes after weeks of behind-the-scenes negotiations that nearly resulted in a pre-January special session, but that never came together.

Still, the passage of the measure comes as an early victory for a governor who is accustomed now to getting what he wants from a Legislature once known for its delay tactics and dysfunction.

“This unfortunately required tragedies and loss of life to actually spur the political process to action, but it’s an issue that many people have worked on for many, many years without the type of success that we’ve seen today,” Cuomo said at a bill signing ceremony.

The legislation’s centerpiece, an updated ban on assault weapons, takes effect immediately.

Cuomo’s law is the first in the country since the school shooting and lawmakers were well aware that the governor wanted to be the first to get new laws on the books following the massacre.

But Cuomo said at the news conference that being first wasn’t so important as passing a good law and showing that government can actually respond to the public.

“I’m proud to be a New Yorker today. I am proud to be part of this government not just be because New York has the first bill, but because New York has the best bill,” Cuomo said. “This is a complex multifaceted problem and this is a comprehensive bill that addresses the full panaroma and spectrum of issues that come up. I’m proud to be a New Yorker because New York is doing something and New York is fighting back.”

Gun-rights advocates and some Republican lawmakers in Albany would certainly disagree with that assessment, however. NRA released a statement this afternoon calling the measure “Draconian.”

Cuomo, who bounded into the Red Room for the news conference with an ear-to-ear grin, does not seem to mind the criticism.

“Different people have different opinions,” he said with a smile. “You can’t make everyone happy all the time.”