Dunkin’ Donuts said it will switch to cage-free eggs in the United States by 2025, becoming the latest restaurant to do so.