Police will have the power to shut down protests and social media companies could be liable for online hate speech under a proposed antisemitism crackdown.