As the inauguration of Donald Trump gets closer and closer, Democrats are preparing to take the president-elect to court.

Eric T. Schneiderman, a New York attorney general, is already investigating the possibility that Trump violated state law with his charity foundation. Maura Healey of Massachusetts, along with Schneiderman, will also investigate whether Exxon Mobil, whose chief executive, Rex W. Tillerson, was just announced as the choice for secretary of state under a Trump presidency, lied to both the public and investors about climate change.

–Marching bands refuse to perform at Trump’s inaugural parade–

“I won’t hesitate to take Donald Trump to court if he carries out his unconstitutional campaign promises,” Healey wrote in a fundraising pitch to supporters.

Representative Xavier Becerra, who this month was chosen as California’s attorney general, called out the Trump administration, daring them to  “come at us” for issues like immigration and health care as well as climate change.

It’s a move right out of the Republican handbook, as Republican attorney generals also used their power in order to cut away at President Barack Obama’s health care and clean energy laws. But with attorney generals’ newfound powers and political usefulness, the Democrats are now taking their turn to use the tools Republicans used against Obama to stop Trump.

“Life just got a lot more exciting for those of us at the state level who are now the first line of defense,” said Schneiderman, echoing states’ rights Republican arguments under the Obama presidency.