“This will do nothing to protect people from the coronavirus, and certainly do nothing to protect our economy,” Boston Mayor Martin J. Walsh said.