The justice's dissent came as the court allowed the Trump administration to end legal protections from over 300,000 Venezuelans.