People denied entry to the United States under President Donald Trump’s first executive order restricting travel from predominantly Muslim countries have agreed to drop their suit against the government if it informs anyone who has not returned that they can reapply for their visas.

The settlement was reached as attorneys from the American Civil Liberties Union and other groups representing those affected by both travel bans prepare to clash with government attorneys before the U.S. Supreme Court for oral arguments over a revised travel ban released in March.