As officials reported that one of two students charged with raping a 14-year-old girl in a Maryland high school bathroom entered the United States illegally, the crime became part of a national debate on immigration.