The UK’s only remaining plant making virgin steel has been taken into public ownership after years of uncertainty over its future.