More than $30 million was spent reopening a mothballed Northland railway line before the partly-completed project was put on hold, figures obtained by RNZ show.