US intelligence contractor heads to court on leak charges