Montreal city council has adopted a bylaw to ban people from insulting police officers and other municipal employees.