Japan has become the first team to qualify for the 2026 World Cup after beating Bahrain 2-0 at Saitama Stadium.