The first Samsung workers’ union in India has been registered after a 38-day protest and 212-day legal fight.