South Australia has ended months of uncertainty over a critical steelworks by placing the plant into administration.