I am trying to prove the following result.
Let $X$ be a topological space. Suppose $\{U_i\}_{i\in\mathbb{N}}$ is a sequence of open sets such that $U_i\subset U_{i+1}\quad\forall\,i\in\mathbb{N}$, $U_i$ homeomorphic to $\mathbb{R}$, and that $X=\bigcup\limits_{i\in\mathbb{N}} U_i$. I have to prove that $X$ is homeomorphic to $\mathbb{R}$.
My idea was trying to extend the homeomorphism $\varphi_1:U_1\longrightarrow (-1,1)$ to $\varphi_2:U_2\longrightarrow (a,b)$, with $(-1,1)\subset (a,b)$ and $\varphi_2(x)=\varphi_1(x)\quad\forall\,x\in V_1$, but I can't seem to do it.
I think you are on the right track. Here is how I would do it; suppose you have constructed $\phi_i : U_i \to (a,b)$ (e.g., $i = 1$), and inductively assume that it is increasing. Then fix a homeomorphism $\phi'_{i+1} : U_{i+1} \to (c',d')$ which is also increasing. Then $\phi'_{i+1}(U_i)$ is an open interval in $(c',d')$, let's say $(a',b')$. Then we rescale and translate the interval $(c',d')$ in such a way that $(a',b')$ gets taken to $(a,b)$ -- call this mapping $r$. Then $r \circ \phi'_{i+1}: U_{i+1} \to (c,d)$ is an increasing homeomorphism, which maps $U_i$ to $(a,b)$. Now define $\phi_{i+1}:U_{i+1} \to (c,d)$ by letting it equal $r \circ \phi'_{i+1}$ outside $U_i$, and letting it equal $\phi_i$ on $U_i$. Then use the pasting lemma to show that this is still an isomorphism.
It is a little fidgety, but it works. Note that it is crucial that $a,b,c,d$ are real numbers, and not $-\infty$ or $\infty$ otherwise the argument doesn't work.