The case was: Munn vs Illinois
This case was filed under grangers movement in 1876 in the Supreme Court and it represented a step towards greater governmental regulation of the economy.
The court decided that the states had the right to regulate commerce within their states (particularly railroad and grain elevator companies). But this decision could not be held forever and was overturned 10 years later by the Wabash case.