WASHINGTON—The Environmental Protection Agency can require greenhouse-gas controls on power plants and other large stationary sources of pollution, the Supreme Court ruled Monday, but it said the agency went too far in claiming power to regulate smaller emitters.

The court's divided decision, written by Justice Antonin Scalia, followed a middle-ground approach that left both environmental groups and industry challengers...