PA to rehire teachers dismissed for 'security reasons'