The ballooning costs of the coronavirus pandemic have put an unexpected strain on the finances of states, which are hurriedly diverting funds from elsewhere to fight the outbreak even as the economic shutdown squeezes their main source of revenue — taxes.