How did the United States acquire the land that became Kansas and Nebraska?

in the Kansas-Nebraska Act
as part of the Louisiana Purchase
in the Mexican-American War
as a purchase from Canada