Displays of Nazi symbols, such as the swastika, and performing the Nazi salute will carry jail time after new laws passed Parliament on Wednesday.