Vijay’s farewell film is in equal parts a crowd-pleasing tribute and a political manifesto, wrapped within an uneven but engaging masala entertainer