The North wanted black people kept out of the territories period. They wanted them neither as slaves nor as free men. They just wanted white people in the territories. Plenty enough has been written from that era to show this is true.
The South wanted to extend Slavery into them.
That's the spin we hear nowadays, but the reality is there would never have been any significant slave presence in the territories because there was little to no profit in attempting to use slaves in the territories.
But the North was gaining more States and Population.
Which is why all the tax laws and the federal subsidies favored them, and which is why they wanted to keep things that way.
The War was about the West.
The war was about money. Only money, and nothing but money.