NSW rector takes leave to run for Senate