Since $f$ is nondecreasing, $f' \ge 0$ so $\int_E f'$ is well-defined for measurable $E$. Also, it's enough to prove the result on some interval $[a,b]$, since, if the result holds here, we can write $E = \bigcup_k [k-1,k] \cap E = \bigcup_k E_k$ where the $E_k$'s are almost disjoint. Hence $\lambda_f(E) = \lambda_f(\bigcup_k E_k) = \sum_k \lambda_f(E_k) = \sum_k \int_{E_k} f' = \int_E f'$ by the monotone convergence theorem. So wlog we'll assume that we're working over some finite interval $[a,b]$ and hence $\lambda_f(E) < \infty$ for all measurable $E$.
First note that the collection of all finite unions of intervals $\mathcal{A}$ is an algebra and that $\int_E f' = \lambda_f(E)$ for all $E \in \mathcal{A}$ by the fundamental theorem of calculus.
Next let $\mathcal{M}$ be the collection of all sets $E$ for which the theorem holds. So $\mathcal{A} \subset \mathcal{M}$.
Claim: $\mathcal{M}$ is a monotone class
To see this, consider any increasing sequence $E_1 \subset E_2 \subset ...$ in $\mathcal{M}$. Then
$\int_{\cup_n E_n} f' = \int \lim_{N \to \infty} f' 1_{\bigcup_{n=1}^N E_n} = \int \lim_{N \to \infty} f' 1_{E_N} = \lim_{N \to \infty} \int f' 1_{E_N} $
by the monotone convergence theorem. The last integral is just $\lambda_f (E_N)$ because $E_N \in \mathcal{M}$ and $\lambda_f(E_N) \to \lambda_f (\bigcup_n E_n)$ by the continuity of measures.
So $\bigcup_n E_n \in \mathcal{M}$.
Next if $E_1 \supset E_2 \supset...$ is in$\mathcal{M}$ then $\lambda_f(E_1) < \infty$. By the continuity of measures,
$\lambda(\bigcap_n E_n) = \lim_{n \to \infty} \lambda_f(E_n) = \lim_{n \to \infty} \int_{E_n} f' = \lim_{n \to \infty} \int f' 1_{E_n}$
Since $1_{E_n} \to 1_{\bigcap_n E_n}$ as $n \to \infty$, the dominated convergence theorem shows that the last limit is just $\int_{\bigcap E_n} f'$.
So we have that $\mathcal{M}$ is closed under monotone countable unions and monotone countable intersections. Hence $\mathcal{M}$ is a monotone class.
By the monotone class theorem, the smallest monotone class containing $\mathcal{A}$ is the Borel $\sigma$-algebra. Hence the Borel sigma algebra is in $\mathcal{M}$ and so we're done.