On Saturday night, a federal judge in Brooklyn blocked part of Mr. Trump’s order, saying that travelers being held at airports across the United States should not be sent back to their home countries.