An approximation solvability method for nonlocal differential problems in Hilbert spaces