If you want a "responsive" remote shell, you need an interact
command after completing the login exchange. Something like this:
#!/usr/bin/expect -f spawn sshpass -pPASSWORD ssh -t loginuser@192.168.1.254 "sudo su -" expect -- "oot's password:" send "PASSWORD\r" expect -- "/root #" interact