Labour is to revive a Tory free speech law to crack down on "woke" cancel culture and protests at universities.