The Supreme Court on Tuesday rejected Trump's bid to end the 150-year-old policy