Appeals court approves suit on NYPD surveillance