A federal appeals court in San Francisco heard arguments on whether the Trump administration should return control of National Guard troops to California after they were deployed following protests in Los Angeles over immigration raids.