Control of the legislature could change hands as voters worry about inflation and the risk of recession