In a pair of immigration rulings Thursday, the court held that the law permits the government to turn away asylum-seekers on the Mexico side of the U.S. border and end temporary protected status for Haitians and Syrians living in the United States.