New Haven’s district is relying on substitute teachers as it grapples with a district and statewide teacher shortage. But district and teacher union officials say staffing levels have improved overall compared to previous years.