Historic tidal swimming pool saved from closure