A weakening yen has emerged as a windfall for the country’s automakers, helping buoy results just when they need it most amid pinched production and derailed deliveries.