He would then be confined to the home of an acquaintance in Venice, Calif., where he would not have access to internet and would be prevented from leaving, except for medical emergencies, and from making transactions of more than $500.

“We are gratified that the Court recognized the unique emergency that Covid-19 has presented,” Mr. Avenatti’s lawyer, Dean Steward, said in an email. He added that the conditions were “taking time to satisfy” and anticipated a release within the next week.

N.Y.C. will move hundreds of homeless people into hotels as deaths in shelters surge.

New York City will begin placing hundreds of single adults, regardless of age and health conditions, into hotel rooms instead of dormitory-style shelters where coronavirus has continued to spread.

About 2,500 people, including those 70 and older, those who are symptomatic or have tested positive for the virus, and those in crowded shelters, will be moved out of shelters and into hotel rooms by April 20.

“It’s tough enough to not have a place to live,” Mr. de Blasio said while making the announcement on Saturday. “We want to make sure people are safe and healthy.”

The mayor’s statements followed a surge in deaths among people living in shelters, especially men who live in dormitory-style shelters for single adults. On Friday, the city’s Department of Social Services reported that five more men, including three who lived in shelters for single adults, had died.

A coalition of advocacy groups, including the Urban Justice Center and VOCAL-NY, has called on Mr. de Blasio to use 30,000 empty hotel rooms to house not only people living in shelters, but people living on the street and in other congregate settings. The Urban Justice Center began a GoFundMe campaign to begin moving people into hotels independently.