There is no rule that the speaker of the house must be a member of the house. I believe it would be possible to allow Cruz to be both a Senator from Texas and Speaker of the House.
Frankly I think Palin should be speaker of the house.
Palin as Speaker would cause quite a stir