Yes, it was illegal due to no players on the flanks.

On how he won the league, a more likely answer is he just changed to illegal formation towards the end of the season. Even if he played with illegal formation through out the season, he could still win the league. Illegal formation only results in 20% possession and many ppl on the forum had experienced losing to an illegal formation.