Spanish transport officials resign after trains ordered that can’t fit through tunnels