The government has confirmed it will repeal Conservative-era legislation which aimed to limit unions' ability to strike.