SAN FRANCISCO — The Trump administration’s decision to end a program that lets immigrants from four countries live and work legally in the U.S. was motivated...