Court hears accused allegedly accessed Government systems and shared staff data with a foreign contact