Short Answer: it works as you would hope, you do keep it until EOT and then sacrifice it.
Explanation: The spell checks if it is a creature (aka a legal target) twice. Once upon casting of the spell and once upon resolution. At both of those times it is under your opponent's control, so as long as he has sufficient devotion the spell will work
Thanks!