The user undertaking that has paid the sums defined in article L. 1251-49 that are still due is subrogated, to the same extent, in all the rights of the employees, social security bodies or social institutions against the temporary employment contractor.