The U.S. Supreme Court ruled in favor of the Trump administration Thursday in two immigration-related cases.