Peterborough City Council has approved the sale of a former office and retail building that has been labelled an "eyesore".