New Mexico doctors can help terminal patients die, judge says