The Texas Supreme Court ruled on Friday that the state attorney general can initiate legal proceedings, known as a quo warranto action, to shut down a nonprofit, saying that a lower court’s injunctions barring the proceedings were “premature at best.”