A U.S. appeals court ruled on Friday that President Donald Trump cannot end a program that shielded from deportation immigrants brought into the country illegally as children, the second time the administration has lost an appeal on the issue.