The president of the United States made it clear that immigration was a priority for him. But while his party controlled the Senate, it didn’t control the House, and he wasn’t able to get what he wanted — a disappointment to his base. So he took unprecedented action, using existing executive branch powers to do as much as he could to accomplish his goal.

It looks like that’s going to be the story of Trump’s border wall, which (according to Senate Majority Leader Mitch McConnell) he plans to sign an emergency declaration to build, after Congress appropriated only $1.6 billion for border barriers in a funding bill expected to pass Thursday.

But when the same story happened under President Barack Obama, one of his most outspoken critics was one Donald Trump.

In yet more proof of one of the enduring truths of the Trump era, There Is Always a Tweet:

Repubs must not allow Pres Obama to subvert the Constitution of the US for his own benefit & because he is unable to negotiate w/ Congress. — Donald J. Trump (@realDonaldTrump) November 20, 2014

Trump tweeted this in November 2014, when Obama announced a range of executive actions on immigration, including the expanded use of “deferred action” to protect parents of US citizen children from deportation (and expanding the existing deferred-action program to cover more unauthorized immigrants who’d come to the US as minors). Both of those actions were ultimately stopped in court, with the Supreme Court deadlocking in 2016 and allowing a lower court’s ruling against Obama to stand.

One of the key legal arguments against the policy was that it was a usurpation of congressional authority: Congress had considered protecting unauthorized immigrants via allowing them to get legal status when it debated comprehensive immigration reform in 2013, so the fact that it had not passed that bill was offered as evidence that it did not want those immigrants protected.

What makes Trump’s tweet especially apt now, though, is that Obama waited more than a year after the Senate passed its immigration bill. It was clear by the end of 2013 that the House had no intention of picking up the Senate’s bill, or introducing a comprehensive bill of its own, but Obama waited until after the 2014 midterm elections to take the executive route.

Trump, on the other hand, literally said during negotiations with Congress that if he was unable to negotiate with Congress, he would sign an emergency declaration. As early as January 10, during the government shutdown, he told Fox News’s Sean Hannity as much: “If we don’t make a deal with Congress, most likely I will do that. I would actually say I would.”

Whether Trump’s emergency declaration “subverts” the Constitution is a question for the courts, which will almost certainly be hit with a bevy of lawsuits as soon as the ink on the declaration is dry. But it’s entirely likely that Trump’s admission that an emergency declaration was a Plan B if Congress didn’t give him what he wanted — an admission he’s made, implicitly or explicitly, several times — will be used against him in court. 2014 Donald Trump could have predicted as much.