South Carolina officials asked the Supreme Court to allow the state to enforce a measure that makes school funding contingent on compliance with a rule on transgender bathroom use.