The Supreme Court on Monday barred California from enforcing state rules that restrict when schools can notify parents about students who come out as transgender.