Webster returned to the Senate in 1845 and resumed his status as a leading congressional Whig. During the Mexican–American War, he emerged as a leader of the "Cotton Whigs," a faction of Northern Whigs that emphasized good relations with the South over anti-slavery policies. In 1850, President Fillmore appointed Webster as secretary of state, and Webster contributed to the passage of the Compromise of 1850, which settled several territorial issues and enacted a new fugitive slave law. The Compromise proved unpopular in much of the North and undermined Webster's standing in his home state. Webster sought the Whig nomination in the 1852 presidential election, but a split between supporters of Fillmore and Webster led to the nomination of General Winfield Scott. Webster is widely regarded as an important and talented attorney, orator, and politician, but historians and observers have offered mixed opinions on his moral qualities and ability as a national leader.