Controversial law would give municipalities powers to ban prostitutes, beggars and petty criminals for three months.