The Supreme Court on Thursday rejected a challenge to a California law that bans the sale of pork that comes from breeding pigs in small spaces.