The US Supreme Court has sided with the Trump administration in its bid to end Temporary Protected Status (TPS).