Swiss parliament approves a measure to ban Nazi and racist symbols to prevent extremist hate or violence.