A long-serving Sinn Féin press officer is one of two who have resigned after they provided a reference to an ex-colleague suspected of sex offences.