ABC News March 9, 2018

Florida Gov. Rick Scott signs controversial gun bill that allows some armed teachers

WATCH: Florida governor signs new gun law 3 weeks after horrific school shooting

Nearly a month after 17 people were killed in a horrific Florida school shooting, the state's governor, Rick Scott, signed a gun safety bill Friday that raised the minimum age to buy a gun but also allows some teachers to be armed.

Surrounded by families affected by the Parkland shooting on Feb. 14, Scott formally signed the SB 7026, the so-called "Marjory Stoneman Douglas High School Public Safety Act," named after the school where the tragedy took place.

Scott Keeler/Tampa Bay Times via AP Photo
Rep. Jose Oliva, R- Miami Lakes, is hugged and congratulated by House members as the gun and school safety bill passed the Florida House 67-50 in Tallahassee, Fla.,March 7, 2018.
Mark Wallheiser/AP Photo
Florida Gov. Rick Scott signs the Marjory Stoneman Douglas Public Safety Act in the governor's office at the Florida State Capitol in Tallahassee, March 9, 2018. Scott is flanked by some of the parent's of the victims.

The legislation will raise the age to buy rifles to 21 from 18 and also require a three-day waiting period for long guns.

Hours after Scott signed the bill, the National Rifle Association filed a federal lawsuit claiming the law violates the Second Amendment by raising the age to buy guns.

Frantic calls released from Parkland shooting: 'I love you, it's going to be fine ... I need you to play dead,' mom says Teen shot at least 3 times in school massacre: 'I'm so grateful to be here' Florida high school massacre: Portraits of the 17 victims

SB 7026 also includes a controversial measure to arm some teachers and other school personnel who undergo special training sanctioned by the state.

Mark Wallheiser/AP Photo
Andrew Pollack,and his son Hunter, center, speak to the media outside the governor's office after the governor signed the Marjory Stoneman Douglas Public Safety Act at the Florida State Capitol in Tallahassee, Fla.,March 9, 2018.The Pollack's lost their daughter, Meadow, in the shooting.

The teacher-arming provision would allow school districts that don't want to participate to opt out. Under the guardian program, teachers and school employees who underwent law enforcement training would be able to carry handguns, provided that their districts opted in.

A number of public officials, including President Donald Trump, have argued that armed teachers would serve as a deterrent to would-be school shooters.

But according to the Tampa Bay Times, the state's largest school districts do not seem to be amenable to the idea of arming educators.

The suspect in the Parkland shooting, Nikolas Cruz, was 19 years old and allegedly used an AR-15 rifle to carry out his rampage. The shooting sparked renewed calls for gun control, including raising the age to buy rifles and banning assault weapons.

If Scott had not signed the legislation, it would have become law 15 days after it passed the house.