Judge says panel had authority to complete oil pipeline deal