U.S. Supreme Court rules on immigration and pipeline cases