Former acting Attorney General Sally Yates is mostly known for two things: refusing to defend President Donald Trump's first executive order on immigration — an order several courts enjoined and the White House eventually withdrew — and warning White House counsel Don McGahn about activities of Mike Flynn, then the national-security adviser, whom Trump fired weeks later.

This is what made Sen. Ted Cruz's attempted grilling of Yates at Monday's hearing seem so strange. All Cruz's aggressive line of questioning did was show how right Yates had been about everything.

There is a procedural argument to be had about when an attorney general should decline to make an argument in court that the president wants made. (Not one that rises to the level of worrying about whether the attorney general has usurped the president's executive authority, I think, since the president has a remedy if they won't do what he wants — he can fire them, as Trump did.)

Sally Yates shuts down Ted Cruz in debate over constitutional law surrounding the travel ban

But if Yates' break with Trump on the executive order was merely a disagreement over a "policy decision" rather than whether the policy was lawful, as Cruz posited, why did federal courts keep blocking it, and why did Trump withdraw it instead of seeking to defend it in the courts?

Of course, this hearing wasn't even supposed to be about the so-called Muslim ban executive order. It was nominally about Russian interference in the 2016 election, including concerns that the Russian government could have compromised Flynn — concerns Yates raised with McGahn during Trump's first week in office.

I think a purpose of Republicans' questioning Yates about the order was to defend the White House from the conclusion that it recklessly ignored Yates' guidance about Flynn. If Yates was a partisan actor hostile to Trump, why should the White House have been expected to take her advice about presidential appointments seriously?

White House press secretary Sean Spicer made this argument on Tuesday, saying Yates is "someone who is not exactly a supporter of the president's agenda" as part of his explanation of why the White House did not act immediately on Yates' warning about Flynn.

But here, too, Yates' correctness is borne by the president's actions. Once it became publicly known that Flynn had discussed sanctions against Russia with its ambassador to the US, Sergey Kislyak — contrary to the public statements of Vice President Mike Pence and other administration officials — Trump fired Flynn.

In both cases, Trump ended up following Yates' guidance, albeit belatedly. He should have listened to her, despite her being a Democratic appointee.

All Cruz and Spicer have achieved is showing that Yates repeatedly and correctly stood up to an unpopular president and got her way in the end. They are doing their part to help launch her political career, should she want one.