Twitter has told the High Court that it has restored Irish-based senior executive Sinéad McSweeney to her position with the company.