Distribution of hitting time of line by Brownian motion
First part
The probability density of $T_{a,0}$ is well-known:
$$
f_{T_{a,0}}(t) = \frac{a}{\sqrt{2 \pi}} t^{-3/2} \exp\left( -\frac{a^2}{2t} \right)
$$
From here, for $\theta >0$,
$$
\mathbb{E}\left( \mathrm{e}^{-\theta T_{a,0}} \right) = \int_0^\infty \frac{a}{\sqrt{2 \pi t}} \exp\left( -\theta t -\frac{a^2}{2t} \right) \frac{\mathrm{d} t}{t} \stackrel{t = a^2 u}{=} \int_0^\infty \frac{1}{\sqrt{2 \pi u}} \exp\left( -\theta a^2 u -\frac{1}{2 u} \right) \frac{\mathrm{d} u}{u}
$$
According to Grandstein and Ryzhyk, formula 3.471.9, see also this math.SE question, we have:
$$
\mathbb{E}\left( \mathrm{e}^{-\theta T_{a,0}} \right) = \frac{1}{\sqrt{2 \pi}} \cdot \left. 2 \left(2 \theta a^2\right)^{\nu/2} K_{\nu}\left( 2 \sqrt{\frac{\theta a^2}{2}} \right) \right|_{\nu = \frac{1}{2}} = \sqrt{\frac{2}{\pi}} \sqrt{2\theta} a K_{1/2}(a \sqrt{2 \theta} ) = \mathrm{e}^{-a \sqrt{2 \theta}}
$$
The time $T_{a,b}$ for standard Brownian motion $B(t)$ to hit slope $a+ b t$, is equal in distribution to the time for Wiener process $W_{-b, 1}(t)$ to hit level $a$. Thus we can use Girsanov theorem, with $M_t = \exp(-b B(t) - b^2 t/2)$: $$ \mathbb{E}_P\left( \mathrm{e}^{-\theta T_{a,b}} \right) = \mathbb{E}_Q\left( \mathrm{e}^{-\theta T_{a,0}} M_{T_{a,0}} \right) = \mathbb{E}_Q\left( \mathrm{e}^{-\theta T_{a,0}} \mathrm{e}^{-b a - b^2 T_{a,0}/2} \right) = \exp(-b a - a \sqrt{b^2 + 2\theta}) $$
Second part
In order to arrive at $\mathbb{P}(T_{a,b} \leqslant t)$ notice that $$ \mathbb{P}(T_{a,b} \leqslant t) = \mathbb{E}_Q\left( [T_{a,0} \leqslant t] \mathrm{e}^{-b a - b^2 T_{a,0}/2} \right) = \int_0^t \frac{a}{\sqrt{2 \pi s}} \exp\left( -b a - \frac{b^2 s}{2} -\frac{a^2}{2s} \right) \frac{\mathrm{d} s}{s} $$ The integral is doable by noticing that $$ -b a - \frac{b^2 s}{2} -\frac{a^2}{2s} = -\frac{(a+b s)^2}{2s} = -2a b -\frac{(a-b s)^2}{2s} $$ and $$ \frac{a}{s^{3/2}} = \frac{\mathrm{d}}{\mathrm{d} s} \frac{-2a}{\sqrt{s}} = \frac{\mathrm{d}}{\mathrm{d} s} \left( \frac{b s - a}{\sqrt{s}} - \frac{b s + a}{\sqrt{s}}\right) $$ Hence $$ \begin{eqnarray} \mathbb{P}(T_{a,b} \leqslant t) &=& \int_0^t \frac{1}{\sqrt{2\pi}} \exp\left(- \frac{(a+bs)^2}{2 s}\right) \mathrm{d} \left( - \frac{b s + a}{\sqrt{s}} \right) + \\ &\phantom{+}& \int_0^t \frac{1}{\sqrt{2\pi}} \exp(-2ab) \exp\left(- \frac{(b s-a)^2}{2 s}\right) \mathrm{d} \left( \frac{b s - a}{\sqrt{s}} \right) \\ &=& -\Phi\left( \frac{b t + a}{\sqrt{t}} \right) + \lim_{t \searrow 0} \Phi\left( \frac{b t + a}{\sqrt{t}} \right) + \\ &\phantom{=}& \mathrm{e}^{-2 a b} \Phi\left(\frac{b t - a}{\sqrt{t}} \right) - \mathrm{e}^{-2 a b} \lim_{t \searrow 0} \Phi\left(\frac{b t - a}{\sqrt{t}} \right) \end{eqnarray} $$ where $\Phi(x) = \int_{-\infty}^x \frac{1}{\sqrt{2\pi}} \mathrm{e}^{-z^2/2} \mathrm{d} z$ is the cumulative distribution function of the standard normal variable. Since we assumed $a > 0$, $$ \lim_{t \searrow 0} \Phi\left( \frac{b t + a}{\sqrt{t}} \right) = \Phi(+\infty) = 1 \qquad \lim_{t \searrow 0} \Phi\left( \frac{b t - a}{\sqrt{t}} \right) = \Phi(-\infty) = 0 $$ and we arrive at c.d.f of the inverse Gaussian random variable: $$ \mathbb{P}(T_{a,b} \leqslant t) = 1 - \Phi\left( \frac{b t + a}{\sqrt{t}} \right) + \mathrm{e}^{-2 a b} \Phi\left( \frac{b t - a}{\sqrt{t}} \right) $$