US judge sides with migrants in case against Border Patrol