A proposal to close a Pupil Referral Unit in Powys has been shelved, an education chief has confirmed.