Pledging to eliminate all ICE cars by 2050 is such a far off claim as to be meaningless. And if they're replacing them with vehicles which derive their fuel from the same fossil fuels then its doubly so.
Hydrogen is just a dumb means to power vehicles. It's very hard to transport, very hard to contain, incredibly flammable, very hard to produce and all round just a terrible idea. Personally I think fuel cells have potential but only when they use ethanol as their input. Ethanol fuel cells still use hydrogen but it's way easier to transport and store and it can be produced from biomass making it almost carbon neutral. Ethanol is also a common fuel in places like Brazil and trials of fuel cells using it are already ongoing there.
Toyota really isn't going to get anywhere with hydrogen. It's a white elephant.