Ali Vayeghan, an Iranian citizen with a valid U.S. visa, left, is kissed by his niece Marjan Vayghan, as his brother Houssein Vayghan welcomes his as he arrives at Los Angeles International Airport Thursday, Feb. 2, 2017. An Iranian man turned away from Los Angeles International Airport under President Donald Trump’s executive order barring people from seven Muslim-majority nations has arrived back in the U.S. under a federal judge’s order. (Damian Dovarganes/Associated Press)

LOS ANGELES — An Iranian man turned away from Los Angeles International Airport under President Donald Trump’s executive order barring immigrants from seven Muslim-majority nations returned Thursday to an emotional welcome from family members who greeted him with California-grown flowers and well-wishers who sang “This Land Is Your Land.”

“Welcome to your new home,” Mayor Eric Garcetti told Ali Vayeghan as he walked out of an airport terminal.

Vayeghan’s family had been waiting to welcome him last Friday at the same terminal when he was detained for several hours by immigration officials then sent back to Iran.

He was allowed to return to the U.S. after the American Civil Liberties Union filed legal action against the federal government.

On Sunday, U.S. District Judge Dolly M. Gee ruled that Vayeghan had a legal travel visa and had been approved for a green card and that not allowing his return was unconstitutional and would do him grave harm.

“I’m very happy and I’m very grateful,” he said Thursday.

Vayeghan was among hundreds of people detained or turned away from U.S. airports after the ban was implemented. Garcetti said Thursday he was the first to be brought back, promising he would not be…