A judge on Friday ordered the release of a Mexican woman while the government seeks to deport her, rejecting arguments that two arrests while demonstrating in support of people in the United States illegally justified requiring that she wear a monitoring device.