An epic biopic of the wartime leader has become a surprise box office hit, reflecting the country’s changing ideas of sovereignty, memory and national identity