The Supreme Court on Thursday ruled for the family of a nursing home resident with dementia that had sued over his care. The man’s family went to court alleging that he was given drugs to keep him easier to manage in violation of his rights. The justices had been asked to use his case to limit the ability of people to use a federal law to sue for civil rights violations.