The drumbeat of defeats grew hard to ignore.

A federal judge struck down the Donald Trump administration’s plan to require some people to work for their Medicaid benefits. Another judge halted Trump’s plan to open Arctic waters to drilling. Yet another ordered an end to what critics said was the administration’s efforts to encourage an end run around the Affordable Care Act. All in the span of about a week.

I spent some time exploring whether I could create a more formal list only to discover that The Washington Post had basically done that.

Here’s how the article by Fred Barbash and Deanna Paul started:

Federal judges have ruled against the Trump administration at least 63 times over the past two years, an extraordinary record of legal defeat that has stymied large parts of the president’s agenda on the environment, immigration and other matters.

In case after case, judges have rebuked Trump officials for failing to follow the most basic rules of governance for shifting policy, including providing legitimate explanations supported by facts and, where required, public input.

Many of the cases are in early stages and subject to reversal. For example, the Supreme Court permitted a version of President Trump’s ban on travelers from certain predominantly Muslim nations to take effect after lower-court judges blocked the travel ban as discriminatory.

But regardless of whether the administration ultimately prevails, the rulings so far paint a remarkable portrait of a government rushing to implement far-reaching changes in policy without regard for long-standing rules against arbitrary and capricious behavior.

It only got more startling.

Two-thirds of the cases accuse the Trump administration of violating the Administrative Procedure Act (APA), a nearly 73-year-old law that forms the primary bulwark against arbitrary rule. The normal “win rate” for the government in such cases is about 70 percent, according to analysts and studies. But as of mid-January, a database maintained by the Institute for Policy Integrity at the New York University School of Law shows Trump’s win rate at about 6 percent.

I decided to reach out to the reporters and hear how their project came together and what they made of it. It seemed all the more timely in that the Trump administration is likely looking at a challenging legal road as it seeks to enforce the president’s declaration of a national emergency at the southern border.

Barbash agreed to a modest Q&A:

What prompted you to undertake the review?

I watch the federal courts closely and became aware over time that the administration was being challenged in court on almost every important policy and deregulatory decision and that U.S. district court judges, who ordinarily defer to the government in most of these challenges, were no longer doing so. Deanna Paul and I began keeping track of the adverse rulings. I’ve been watching regulation and courts for a very long time, and the numbers of defeats were well beyond anything I had seen.

Was it hard to capture all the possible cases?

Get Our Top Investigations Subscribe to the Big Story newsletter.

I’m not sure we did capture all the possible cases. The highly publicized cases, like DACA and the travel ban, are obvious. Nobody seems to keep some sort of master list of everything else. So Deanna and I began to track them down using a variety of sources. We wound up with the number 63, which even since we wrote the piece has increased to about 68.

What finding surprised you most?

As we interviewed experts on the subject, including former Justice Department officials who keep track of these things, we realized that these numbers were extraordinary. No one had an exact count comparing, say, the Obama administration’s record in court after two years with the Trump administration. But as we researched the subject, we found studies estimating the average “win rate” for administrations in the courts was somewhere around 70% whereas the Trump administration appeared to be losing at least 70% of the time.

Were you able to say the losses in nature or volume were different than prior administrations?

It would have taken six or seven months to get exact numbers. But every expert we talked to agreed that the volume was much higher for the Trump administration. The question then became why. As I wrote in an earlier story, when the losing streak started, it’s kind of like relationships. When one or two don’t work out, you can plausibly blame the other people. When the numbers mount, you have to think, maybe the problem is me, that is, maybe I’m doing something wrong.

Some experts you cited said the government had failed to do basic legal homework. You think that was really true? Seems kind of crazy.

It does seem crazy, but when you read the cases and the opinions of the judges, including Republican judges, that’s what they found in so many instances. It’s hard to tell whether the agencies knew that they were out on a limb with so many of these decisions and went ahead anyway, or didn’t have competent legal advice. Some experts, as the article said, thought that the failure of some agencies to “do their homework” as they suspended or delayed regulations, for example, showed that they were more interested in making announcements of deregulatory change than in the change itself, so the risk of a judge blocking their actions didn’t concern them all that much. Of course, the agency spokespeople deny that. But lawyers know, for example, that the law sometimes requires public notice and comment when making regulatory change. It’s not hard. It just slows things down. But if they fail to do it, it’s almost a certainty that a judge will object. These are not close calls. Now some of the cases, like the census case (the Commerce Department’s decision to add a citizenship question to the census), are much more complex than what I’m describing and raise deeper issues, which we continue to pursue.