The Trump administration's use of federal troops in Los Angeles to conduct law enforcement operations is unlawful, a federal judge ruled on Tuesday.