TOKYO — Toyota Motor Corp. and its Japanese carmaking allies Mazda and Subaru are doubling down on the next generation of compact, clean and powerful engines they say will emerge as potent weapons in the war on carbon emissions, even in the age of electric vehicles.