The Court’s decision deals a blow to President Donald Trump’s hardline immigration agenda.