Federal judge says Coast Guard officer accused of terror attack plot will be released from detention