401.3 Some modifiers change the controller of a card in play. A card that changes controllers is still the same card. The new controller moves the card to his or her ally, hero, or resource row, if applicable. Such a card functions normally whether or not it’s legal (100.2) for its new controller. Any attached cards stay attached but don't change controllers.
I thought the ruling was things that were not legal were just destroyed. I guess not... or maybe it was changed?