(CNN) -- The Chicago, Illinois, City Council in a 45-0 vote approved a new gun ordinance Friday, four days after the U.S. Supreme Court ruled that the city's 28-year-old strict ban on handgun ownership was unconstitutional.
Among other details, the ordinance allows only one operable firearm per household, meaning all other guns would need to have gun locks or be in locked cases. It also requires owners to have a state firearms permit, to register weapons with Chicago police and to take four hours of classroom training and one hour of firing range training.
The plan also bans assault weapons and gun shops in the city.
The June 28 Supreme Court ruling overturned the city's previous handgun ban.
"Although the ruling wasn't what we had hoped for, it was what we expected," said Chicago Mayor Richard Daley. "That's why for the last several months we've been preparing the reasonable and responsible ordinance to regulate handguns in the home that the council approved today. ...
"Either we enact new and reasonable handgun laws in Chicago to protect our residents -- as the council has done -- or we do nothing and risk greater gun violence in our streets and in our homes," he said.
A 5-4 conservative majority of justices on Monday reiterated its 2-year-old conclusion that the Constitution gives individuals equal or greater power than states on the issue of possession of certain firearms for self-protection.
"It cannot be doubted that the right to bear arms was regarded as a substantive guarantee, not a prohibition that could be ignored so long as states legislated in an evenhanded manner," wrote Justice Samuel Alito.
The court grounded that right in the due process section of the 14th Amendment. The justices, however, said local jurisdictions still retain the flexibility to preserve some "reasonable" gun-control measures currently in place nationwide.