The Supreme Court said Friday it will weigh whether a city’s enforcement of rules prohibiting homeless residents from camping on public property violates the Constitution’s protection from cruel and unusual punishment.