History foundation reaches agreement with state over $270,000 in misdirected COVID-19 funds