I've used expanding foam for most of my models with success. Especially the non-human ones with multi joined legs.
My Mass Effect: Grunt model needed it for similar reasons as your T-Rex, I've cut open the sole of the feet, put a little around the knees with the long pipe that the can came...