The government has amended its anti-vilification legislation to scrap a proposed “genuine political purpose” exemption for criminal hate speech.