Dundee City Council had proposed closing the two attractions - and the Mills Observatory - in a bid to save money.