Thomas Jefferson used the philosophies of John Locke for the Declaration of Independence. The words "life, liberty, and the pursuit of happiness" was an idea first stated by Lock in the Two Treatises on Government.
It affected his ideas because he felt that the cabinet should be made a specific way which determined his outlook on the presidency