Justices side with government in property rights case