Teachers’ union warns lack of funding for schools during the pandemic is placing staff and pupils at risk.