Well, I figured out the answer myself, just posting it for the reference.
Actually, we can solve the equation twice: once we put the boundary condition $\varphi=1$ on $\Gamma_2$ (let's call this solution $\varphi_1$) and once we put the boundary condition $\varphi=0$ (let's call this solution $\varphi_0$). Notice that $\delta\varphi = \varphi_1-\varphi_0$ satisfy zero boundary condition on $\Gamma_{0}$ and $\Gamma_1$ and $\delta\varphi=1$ on $\Gamma_2$.
Now if the actual value of the floating potential on $\Gamma_2$ is $\varphi |_{\Gamma_2}=\alpha$ then $$\varphi=\varphi_0+\alpha \delta\varphi$$ is a a solution. We must take into account zero surface charge boundary condition on the floating potential surface to determine $\alpha$. This leads to $\int_{\Gamma_2} \frac{\partial \varphi}{\partial n} dS = 0$, substituting $\varphi=\varphi_0+\alpha \delta\varphi$ into this condition leaves us with a linear equation for $\alpha$, the potential of the floating electrode.