I thought it was worth making this answer to explain what your text was (maybe) referring to, with regard to "solutions at infinity" and how it ties in here.
The general quadratic equation is $ax^2 + bx + c = 0$. Usually, $a \ne 0$ is an assumed condition. However, let's see what happens if we disregard that condition.
The general solution is usually represented as $\displaystyle x = \frac{-b \pm \sqrt{b^2-4ac}}{2a}$. Consider what happens as we let $a \to 0$ while $b,c \ne 0$. One root becomes the inderminate form $\frac 00$ (which we'll address soon), while the other root becomes $\frac ba \to \pm\infty$ (depending on the signs of $a$ and $b$). This is (probably) what your text is talking about when they refer to a "root at infinity".
What about the other root of the form $\frac 00$? Well, we can't make much headway using the standard formula. However, we can tranform the formula using one of Vieta's formulas for the product of roots (which will be equal to $\frac ca$). Using that, we get the alternative quadratic formula $\displaystyle x = \frac{2c}{-b \pm \sqrt{b^2-4ac}}$. When you apply the same conditions to this formula, you get one root as $\frac{2c}{0} = \pm \infty$ (depending on the sign of $c$), and the other root as $-\frac cb$, which is very much a defined real number.
What's going on here? Obviously, when you think about it, if you drop (or "cancel" for whatever reason) the lead term, you make the quadratic a simple linear equation $bx + c = 0$. This has only one solution, namely $x = -\frac cb$. We have managed to recover this (real, defined) root as the second value found with the "alternate" quadratic formula. It is consistent with the indeterminate form $\frac 00$ found by the first method because that indeterminate form may actually assume any value, including $0, \pm \infty$ and any finite value (in this case, the latter possibility holds).
So we have a defined root $x = -\frac cb$ and a "root at $\pm \infty$".
Does any of this make any sense? Not in usual algebra and analysis, because what I wrote is highly non-rigorous. A quadratic is a polynomial of degree $2$ and we're usually focussed on finding real (or sometimes complex) solutions to these. Infinity is not a real number (neither is it a complex number). It does not lie on the real line. However, it is my understanding that it is possible to rigorously extend the real numbers to so-called "hyperreal numbers" and "surreal numbers" that include the concept of infinity on the number line, but I don't know enough about this, so I won't talk about them further. The bottom line is that the generally accepted method of solution of quadratics only admits of defined real and complex solutions, and solutions like "roots at infinity" are treated as absurdities.
But we have to see how all this ties in to your problem. When one deals with infinities, generally limits have to be considered. The transform you used (Weierstrass substitution) was $\displaystyle \sin x = \frac{2t}{1+t^2}$ and $\displaystyle \cos x = \frac{1-t^2}{1+t^2}$. Let's see what happens when we let $x = (2n+1)\pi,\ n\in\mathbb{Z}$. In this case, $t$ will be unbounded, and the right hand sides will both become indeterminate forms $\pm \frac{\infty}{\infty}$. However, if we used the theory of limits to find the limiting behaviour of the functions, we get:
$\displaystyle \sin (2n+1)\pi = \lim_{t \to \pm \infty} \frac{2t}{1+t^2} =\lim_{t \to \pm \infty} \frac{2}{\frac 1t +t} = \lim_{t \to \pm \infty} \frac 2{t} = 0$
and
$\displaystyle \cos (2n+1)\pi = \lim_{t \to \pm \infty} \frac{1-t^2}{1+t^2} =\lim_{t \to \pm \infty} \frac{\frac 1{t^2} - 1}{\frac 1{t^2} +1} = -1$
so we have successfully "recovered" the usual relations.
But when you use the $t = \tan\frac x 2$ substitution without considering the limiting behaviour when $t$ is not defined for certain parts of the domains where the original functions ($\sin x, \cos x$) are well-defined, that's when you run into problems. In your case, as you work through the algebra, you'll find a step where you get a quadratic on the LHS and another on the RHS, and the two lead terms "cancel" to give a linear equation. By reducing that to a linear equation, you lose the roots that occur when $t$ is undefined. However, if you take the alternative view of the equation as being the limiting case as $a \to 0$ like I explained above, you'll be able to recover the solutions $t = \pm \infty$, which will give the "missing" solutions.
The bottom-line is that I consider this a poor technique to solve the problem because of the difficulties it presents. As others have mentioned, it is a basic rule of thumb that when you make a substitution it behoves you to ensure that your substituted function(s) is/are properly defined for the same domain as the parent function(s). This is clearly a case where this was not done properly or rigorously, so the method seems to fail without going through a lot of convolutions (and non-rigorous reasoning).
I'm not sure at what level your text is targetted, nor the exact phrasing used, but I consider the mention of "roots at infinity" etc. to be very poor form. Introducing concepts like these to students who are not yet familiar with calculus or limits is bound to cause confusion and lead in turn to them forming bad habits of their own, in my view. On that basis, I consider at least this part of your text to be very poorly written.
On the whole, it's better to use another method of solving the equation. The conversion to either of the $R\sin(x\pm \alpha)$ or $R\cos (x\pm \alpha)$ forms is my favourite as it is a one-to-one transform and it gives all the roots every time (and no extraneous roots), but you can also square both sides of the equation. Keep in mind that squaring (or raising any equation to an even power) will introduce "extraneous roots", which you must eliminate by checking against the original equation. This ties in with the larger theme of the method you use determining exactly how simple and direct the solution is.