Ramped-up immigration enforcement in several cities this week has resulted in the detention of hundreds or more people in the country unlawfully, according to attorneys and advocacy groups, who said they expected most of them to be deported.

Illegal immigrants were rounded up in the metropolitan areas of Atlanta; Austin, Texas; Charlotte, N.C.; and across southern California, among others, they said.

President...