States and local governments across the country are battling lawsuits over their handling of the coronavirus pandemic.