A panel rejected a lower court’s finding that it was likely illegal for President Trump to use state troops to protect immigration agents from protests.