A federal judge has ordered the Trump administration to stop deploying California National Guard troops in Los Angeles.