Iowa Attorney General Brenna Bird and 12 other states are joining together to oppose a Massachusetts law that bans other states from selling or shipping pork in the state if they don’t meet strict hog-housing requirements.

Massachusetts’s law, called Question 3, goes beyond California’s similar Proposition 12 by prohibiting the shipment...