Minn. among 38 states facing budget shortfalls