Chicago’s legislative body approved a measure barring police officers with verified ties to extremist organisations