Modern social science finds that the 13th-century theologian’s recipe for “imperfect happiness” turns out to be perfect.