An embattled Brooklyn Surrogate’s Court judge under investigation by an ethics panel for allegations of discrimination will have her courthouse keys returned to her, but remains blocked for now from presiding over cases, according to a judge’s ruling to alter an administrative order issued against her last year. 

The ruling came in a lawsuit filed by Judge Harriet Thompson against court administrators, who last year sent forth an order to divert Thompson’s caseload to an acting surrogate and bar Thompson from setting foot in nonpublic areas of Brooklyn Supreme Court facilities.