The US supreme court on Friday allowed Donald Trump’s administration to strip legal protections from more than 300,000 Venezuelan migrants.