Proposed $32.5B tobacco deal not ‘doomed to fail,’ judge says in ruling