Let me try to answer. The term you mention in your question frequently appears in CVA (Credit Valuation Adjustment) calculations. In the context of CVA, the stopping time referring to a credit event is the point in time when a counterparty defaults (by "counterparty" I mean some financial or corporate institution which has traded a portfolio of derivatives with some bank, and therefore this financial or corporate institution is the bank's "counterparty" on this derivative portfolio). CVA is basically the market-implied cost of insuring the credit risk related to this counterparty defaulting.
The generic CVA formula can be written as below ($Df(t)$ is the discount factor from $t_0$ to $t$, $V(t)$ is the portfolio value at time $t$, LGD is "Loss given default". If a counterparty defaults and you can still recover "$x$%" of your the portfolio value, then $LGD = 1 - x$):
$$ CVA(t |\mathbb{F_{t_0}}) = \mathbb{E_Q} \left[ \int_{s=t_0}^{s=t} Df(s)* I_{(V_s>0)} * I_{(default_s)} *LGD* V(s) ds \right] = \\ = LGD* \mathbb{E_Q} \left[ \int_{s=t_0}^{s=t} Df(s)*I_{(default_s)}* V(s)^+ ds \right] = \\ = LGD* \int_{s=t_0}^{s=t} \mathbb{E_Q} \left[Df(s)*I_{(default_s)}* V(s)^+ \right] ds = \\ = LGD* \int_{s=t_0}^{s=t} \mathbb{E_Q} \left[I_{(default_s)} \right]* \mathbb{E_Q} \left[ \tilde{V}(s)^+ \right] ds $$
Above, $\tilde{V}(s)$ is the discounted portfolio value.
Now the interesting term is $\mathbb{E_Q} \left[I_{(default_s)} \right]$, which is the expectation over an indicator function that is equal to "one" if the counterarty is in default at time $s$.
In my experience, many people struggle with this term. The way I like to think about this term is to tell myself that a "counterparty can only default at time $s=t$ if it had survived until time $s = t_-$, where $t_-$ stands for the infinitesimally earlier point in time than time $t$. So really, the term $I_{(default_s)}$ should be $I_{(default_s\cap survival(t_0,s_-))}$.
In words, the term you mention in your question:
$$E_P[\mathbf{1}_{\{\tau\leq T\}}]=\int_0^T E_P[\mathbf{1}_{\{\tau=s\}}]ds.$$
Is the probability that the counterparty defaults at any point in time before and including time $T$ (or, in more general terms, the probability that a credit event has occured before and including $T$).
I think the stopping time notation is not that intuitive. There's nothing wrong with the integral you wrote, but I'd probably prefer rewriting it:
$$\int_{s=t_0}^{s=T} \mathbb{P}(Default_s|Survival_{s_-})*\mathbb{P}(Survival_{s_-})ds$$.
It becomes even more intuitive if the integral is discretized into $n$ intervals, so that each interval has length $t_i - t_{i-1}$ . For each such period $t_i - t_{i-1}$, you can get the conditional probability of default by bootstrapping the CDS curve. So the forward CDS spreads give you (simplified slightly):
$$ \frac{ CDS \left( t_{i-1},t_i \right)}{LGD} = \mathbb{P} \left(Default\left( t_{i-1},t_i \right)|Survival \left( t_0,t_{i-1} \right) \right) $$
And:
$$ 1 - \frac{ CDS \left( t_0,t_{i-1} \right)}{LGD} = \mathbb{P} \left(Survival \left( t_0,t_{i-1} \right) \right) $$.
So finally, to answer your questions:
(1) The manipulation is valid. You can sum (integrate) over the expectation of an indicator function that has a default stopping time as its argument, because you are just integrating in time over a probability of default.
(2) When is it useful? For CVA calculations for example.