Leeds city centre’s oldest church is set to be preserved after repair plans were agreed with the council.