England avoided a scare against Panama to win Group L and advance to the knockout stage at the 2026 FIFA men's World Cup.