Leominster, casino firm reach $38M slots deal