Federal judges — including one appointed by Trump — are castigating the deployment of federal troops into cities.