Sarkozy was elected in May on promises to reform France from its courts to its creaking university system , its army of civil servants to rail workers whose special retirement privileges he vowed to erase .