Florida Governor Rick Scott has signed a $400m school safety bill in response to the tragedy that killed 17 people at a high school.
Flanked by family members of students who were killed during the mass shooting just over three weeks ago he said the bill, written since the shooting, balances "our individual rights with need for public safety".
He added: "It's an example to the entire country that government can and has, moved fast."
The bill is not what many of the shooting's survivors, or the school's students, wanted - they said it does not go far enough.
It also marks Mr Scott's break with the National Rifle Association, and the group's powerful lobbyist called the bill "a display of bullying and coercion" that would violate Second Amendment rights and punish law-abiding citizens.
The bill raises the minimum age to buy rifles from 18 to 21 and creates a waiting period on sales of the weapons.
It also creates a so-called "guardian" program that enables teachers and other school employees in participating districts to carry handguns if they complete law enforcement training.
Mr Scott said he is still "not persuaded" about the guardian program.
"I'm glad however, the plan in this bill is not mandatory," he said, adding the program will be up to local officials to implement. "If counties don't want to do this, they can simply say no."
He said he is signing the legislation because it makes schools safer and singled out two fathers whose children were killed, saying they walked the halls of the Legislature since the shooting to enact change.
Mr Scott said: "I know the debate on all these issues will continue. And that's healthy in our democracy.
"This is a time for all of us to come together, roll up our sleeves and get it done."
Student activists from the school where the shooting took place followed the bill's track closely and called it "a baby step".
"Obviously, this is what we've been fighting for. It's nowhere near the long-term solution," said Chris Grady, a senior at Marjory Stoneman Douglas High School.
Mr Grady is one of the organisers of the March for Life later this month in Washington, DC.
He added: "It's a baby step, but a huge step at the same time. Florida hasn't passed any legislation like this in God knows how long.
"It's nowhere near what we want, but it's progress and uplifting to see."
Mr Scott told the students: "You helped change our state. You made a difference. You should be proud."
The bill narrowly passed the House and Senate, and falls short of what he wanted and what survivors of the massacre demanded. Florida's teachers union and the National Rifle Association are opposed.
The measure would raise the minimum age to buy rifles from 18 to 21, extend a three-day waiting period for handgun purchases to include long guns and ban bump stocks that allow guns to mimic fully automatic fire.
In schools, it would create a "guardian" program enabling staff with law enforcement training and school district approval to carry concealed handguns on campus.
It would create new mental health programs for schools and establish an anonymous tip line where students and others could report threats. It also seeks to improve communication between schools, law enforcement and state agencies.
The NRA opposes raising age limits to buy weapons or imposing new waiting periods.
In a statement Thursday, NRA and Unified Sportsmen of Florida lobbyist Marion Hammer called the bill "a display of bullying and coercion".
Broward County teachers union President Anna Fusco met with Carlos Lopez-Cantera and let him know teachers support the school safety bill, but do not like the provision that allows school employees and some teachers to carry guns after receiving law enforcement training.
She said she wants Mr Scott to veto the money for the so-called guardian program when he receives the budget.
He can not veto individual items in the bill itself, but can does have line-item veto power with the budget.
"We support the bill," Ms Fusco said. "I know there's lots of things in there that are a start, and there's in there that's going to bring some pieces back together for Parkland.
"But there's a piece in there that we're concerned about - arming educators in schools."
The programme to arm teachers would be optional, and the Broward County school superintendent has already said he does not want to participate. Ms Fusco said she expects Mr Scott to sign the bill.
Meanwhile, the 19-year-old former student accused of opening fire at the school on February 14 made his initial appearance before a judge this week on 17 attempted murder charges added by the grand jury.
In the brief hearing Friday, Nikolas Cruz stood with his head bowed as he appeared via video conference.
He is also charged with 17 counts of first-degree murder.
Cruz's public defender withdrew an initial not guilty plea, leaving him to "stand mute" for now, but has said he will plead guilty if prosecutors take the death penalty off the table and sentence him to life in prison instead.
Prosecutors have not announced a decision.