US judge bars Border Patrol from some warrantless arrests of suspected undocumented residents