A man who drugged and raped his wife told a jury when he was arrested he knew his life was "ruined".