Newborns who sleep longer and consistently through the night are less likely to be overweight in infancy, a new study has found.