CHICAGO (AP) The Chicago City Council has approved an ordinance that dramatically limits where gun stores can operate and requires them to videotape every purchase to prevent one person from buying a gun for another.

Aldermen voted 48-0 on Wednesday. The ordinance comes after a January federal court ruling gave Chicago until July 14 to put gun store rules in place. The proposal has been criticized by firearms rights groups and will likely prompt a legal fight.

Chicago has been at the center of national debate over gun control and gun violence even before its decades-old handgun ban was invalidated by the U.S. Supreme Court in 2010.

The new law would prohibit gun shops in most of Chicago. Mayor Rahm Emanuel says the city created a "smart, tough and enforceable ordinance."