High court limits lawsuits against officials over rights violations