President Trump’s agenda faced more than 600 lawsuits over the past year. In many cases, district court judges found his policies to be unlawful.