Court OKs trial for girl who texted boyfriend urging suicide