A new study says laws curbing the sale of junk food and sweet drinks could play a role in slowing childhood obesity.