Almost 100% guaranteed that it was Florentino Perez who made the signing. He likes his galacticos. Allegedly switched out Di Maria for James because of the same thing - James is a bigger star in South America.
What is almost as mad as the stupid amount of money they paid is that they can probably get most of it back from Man United.