An important Glasgow contemporary arts archive containing more than five decades of material has been saved for the city.