The meaning of the last lines of "Sonnet" is that, even in difficult times and in the midst of conflict, there is a force or power that works towards ensuring that what is right and just ultimately prevails. The speaker of the poem is expressing a belief in the ultimate triumph of good over evil, and in the existence of a higher power or force that guides and supports those who strive for righteousness.