This is called 'Secondment' and it is legal. There is a form from the MOI which has to be signed by both sponsors if they agree.