A Ukrainian court has ruled the privatization of the country 's largest steel mill was illegal .