Prime Minister Anthony Albanese has announced a raft of legislation that will crack down on hate speech.