That's very easy to show, once you can use the theorem "f continuous on a compact => f uniformly continuous", even though I had to stress some tecnichal detail.
Take eps > 0.
You have to find a delta > 0 such that for every couple of elements x1, x2 in [0, +infty) such that | x1 - x2 | < delta you have |f(x1) - f(x2)| < eps.
From the definition of limit you have that an M positive real exist such that for every x > M
you are sure |f(x) - 1| < eps/2.
Now on [0,M+1] f is uniformly continuous, so you have a delta1 >0 such that for every x1,x2 in [0,M+1] we have |f(x1) - f(x2)| < eps.
Take delta = min(delta1, 1).
We have trivially that, for every x1,x2 in [0, M+1] with | x1 - x2 | < delta we get
|f(x1) - f(x2)| < eps and delta is in (0,1].
Ok. Now take x1, x2 in [0, + infty) with | x1 - x2 | < delta. If the greatest of the 2 xs lays in [0,M+1] you have, of course, |f(x1) - f(x2)| < eps .
If the greatest xs lays in (M+1, +infty), since | x1 - x2 | < delta <= 1, we have the lowest x stays in (M, +infty). In conclusion we have x1, x2 > M.
So | f(x1) - f(x2)| = | f(x1) - 1 + 1 - f(x2) | <= |f(x1) -1| + |1 - f(x2)| =
|f(x1) - 1| + |f(x2) -1| < eps/2 + eps/2 = eps.