after suffering through grueling winters , small pox epidemics , and a superior military power , the colonists finally won their independence and instituted the united states constitution and the bill of rights , guaranteeing everyone what thomas jefferson called the inalienable rights to life , liberty , and the pursuit of happiness .