LOS ANGELES—A ban on storefront pot dispensaries here won't go into effect Thursday after advocates for medical marijuana successfully petitioned to block it, the latest skirmish in the battle over how local governments around the nation should regulate pot businesses.

After years of failed attempts to control the number of pot shops and their operations here, the Los Angeles City Council unanimously passed an ordinance in late July that made storefront dispensaries illegal by...