Do city councils approve bylaws or ordinances?
In order not to be ruled by a government and its laws, regulations, ordinances, etc, one must not live within the juridiction of such a government or not to do business of any sort with entities or enterprises regulated by a government. In sort, to avoid any city ordinances, you must not live within that city.
Yes, it is legal UNLESS you have city ordinances saying otherwise (or neighborhood covenants). Go research your neighborhood covenants and city ordinances. These can usually be found at your local courthouse and/or recording office (where property deeds are recorded). If such ordinances or covenants are in place you can complain to city council about it, and to your local homeowner's association.