Judge grants temporary restraining order in charter school fight