[guided]We start with an arbitrary partition $P=(t_0,\dots,t_m)$ of the parameter interval for the reparametrized path $\gamma\circ\phi$, so
\begin{align*}
0=t_0<t_1<\cdots<t_m=1.
\end{align*}
The corresponding partition sum is
\begin{align*}
S(\gamma\circ\phi,P)=\sum_{i=1}^{m} d(\gamma(\phi(t_i)),\gamma(\phi(t_{i-1}))).
\end{align*}
Because $\phi$ is nondecreasing, the image list
\begin{align*}
\phi(t_0),\phi(t_1),\dots,\phi(t_m)
\end{align*}
is nondecreasing. Because $\phi(0)=0$ and $\phi(1)=1$, this list begins at $0$ and ends at $1$. It may fail to be a partition only because some consecutive values can be equal. We remove repeated values and call the resulting strictly increasing list $Q=(s_0,\dots,s_k)$. Then
\begin{align*}
0=s_0<s_1<\cdots<s_k=1,
\end{align*}
so $Q$ is a finite partition of $[0,1]$.
Why does deleting repeated values preserve the partition sum? If $\phi(t_i)=\phi(t_{i-1})$, then the corresponding distance term is
\begin{align*}
d(\gamma(\phi(t_i)),\gamma(\phi(t_{i-1})))=d(\gamma(\phi(t_i)),\gamma(\phi(t_i)))=0.
\end{align*}
Thus the only terms discarded have value $0$, and the remaining terms are exactly the distances appearing in $S(\gamma,Q)$. Hence
\begin{align*}
S(\gamma\circ\phi,P)=S(\gamma,Q).
\end{align*}
Since $Q$ is an admissible partition for the definition of $L(\gamma)$, we have
\begin{align*}
S(\gamma,Q)\leq L(\gamma).
\end{align*}
Therefore
\begin{align*}
S(\gamma\circ\phi,P)\leq L(\gamma).
\end{align*}
The partition $P$ was arbitrary, so taking the supremum over all partitions $P$ gives
\begin{align*}
L(\gamma\circ\phi)\leq L(\gamma).
\end{align*}[/guided]