As governors and mayors grapple with an out-of-control pandemic, they are ratcheting up mask mandates and imposing restrictions on small indoor gatherings, which have been blamed for accelerating the spread of the coronavirus. But while such measures carry the weight of law, they are, in practical terms, unenforceable, and officials are banking on voluntary compliance instead.