Brock Dahl, the US State Department’s top lawyer, has resigned after less than six months in the role, a department spokesperson said. His departure was announced on Thursday, weeks before Democrats are due to take control of Congress on January 3.

Dahl’s deputy, Sean Mirski, is also due to leave the department before the end of the year, the spokesperson said. The department did not give reasons for either departure. The spokesperson thanked Mirski for his work advancing President Donald Trump’s policies over the past two years.

The departures come ahead of expected congressional investigations into the Trump administration’s foreign policy. The legal adviser is the State Department’s senior lawyer and plays a central role in responding to investigations. The position also provides advice on policies including the US-Israeli war on Iran and deadly strikes on boats in the Caribbean and eastern Pacific.

Congressional Democrats have signaled that they intend to investigate the administration’s actions overseas and the closure of the US Agency for International Development, or USAID. Trump nominated Dahl for the legal adviser’s post, and the Senate confirmed him in June. Filling the position before Democrats take control of Congress is expected to be difficult.

Other senior State Department officials have also resigned ahead of the change in congressional control. They include policy planning chief Jeremy Lewin, Darren Beattie, who held several positions including envoy to Brazil, and former ambassador to Greece Kimberly Guilfoyle, who faced a series of misconduct allegations. Several senior Justice Department prosecutors have also resigned before the anticipated Democratic-led investigations.