The agreement between a populist and centre-left party is a major setback to the right-wing League.