The state of Texas sought to block the resettlement of Syrian refugees within its borders, suing both the federal government and the rescue committee on Wednesday over concerns about the security of the vetting process. The aid agency, represented by the American Civil Liberties Union, and the Justice Department submitted opposition briefs on Friday to a restraining order sought by the state.

Hours later, Texas said it would withdraw its request for a temporary order to stop the refugees’ arrival. But the case over whether Syrian refugees should be resettled in Texas is continuing, and the state has requested a hearing for next week. Two families may arrive in Texas by Monday.

Karen Hinton, a spokeswoman for the mayor, said he was concerned that the families would not be able to leave the airport once they got to Texas. “So we said, if Texas won’t let them in, we are very happy for them to stay in New York City,” she said.

The mayor himself seemed to echo that spirit later on Friday at an event at a mosque in Queens, though he did not address the Syrian refugee issue directly.

“This city, this blessed place, is a beacon to the world, and has succeeded because it is a city for everyone,” he said at the Jamaica Muslim Center to a crowd of about 150 people, most of whom sat before him on a colorful rug. The mayor himself was shoeless, in socks, as is the custom.