Using that $\tan(x+y) = \frac{\tan(x) + \tan(y)}{1-\tan(x)\tan(y)}$, this limit is $$\lim_{x \to 0} x \frac{\tan(xa) + \tan\left(\arctan \left(\frac{b}{x}\right)\right)}{1-\tan(xa)\tan\left(\arctan \left(\frac{b}{x}\right)\right)}$$
Since $\tan(\arctan(x)) = x$, this simplifies to $$\lim_{x \to 0} x \frac{\tan(xa) + \frac{b}{x}}{1-\tan(xa)\frac{b}{x}} = \lim_{x \to 0} \frac{x^2\tan(xa) + bx}{x-\tan(xa)b}$$
From here, applying L'Hopital's rule, this becomes $$\lim_{x \to 0} \frac{2x\tan(ax)+ax^2\sec^2(ax) + b}{1-ab\sec^2(ax)}$$
Now if $ab \not= 1$, we can simply plug everything in to get $\frac{b}{1-ab}$, while if $ab = 1$, the denominator would approach $0$ from the negative side. If $a>0$, the numerator would be a positive constant, while if $a<0$, the numerator would be a negative constant. Therefore, when $ab=1$ and $a>0$, the limit goes to $-\infty$, while if $ab=1$ and $a<0$, the limit goes to $\infty$.