US judge temporarily halts Trump plan to cut hundreds of millions of dollars for teacher training