New York's education department threatened legal action if the federal government doesn't restore pandemic relief funds.