Governments are testing whether a mix of perks, incentives and ideology might reverse shrinking population trends. Here’s what they’ve learned.