Upheld means to confirm, but it can also mean to physically support something. Tom is confirming that the ceiling is going to collapse, but it is supporting it. The joke is centered on the word "upheld" and how it relates to giving physical support, and how it means confirmation of something.
' ' If I let go of the ceiling it will collapse , ' ' Tom upheld .