A Shropshire leisure centre in the birthplace of the modern Olympic games that has been under threat, has been saved.